Skip to content

Instantly share code, notes, and snippets.

@mtao
Last active January 19, 2017 16:32
Show Gist options
  • Save mtao/d15338f3144c01afdad6eec2c7f1e37d to your computer and use it in GitHub Desktop.
Save mtao/d15338f3144c01afdad6eec2c7f1e37d to your computer and use it in GitHub Desktop.
a header dsl for pif who loves perl
#ifndef PIFDSL_HPP
#define PIFDSL_HPP
#include <map>
namespace pif {
using hash = std::map<string,string>;
}
//example:
/*
pif::hash phoneme_type;
phoneme_type["f"] = "f";
phoneme_type["c"] = "k";
phoneme_type["c"] = "k";
if(phoneme_type["c"] == "k") {
dance();
}
*/
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment