Last active
January 19, 2017 16:32
-
-
Save mtao/d15338f3144c01afdad6eec2c7f1e37d to your computer and use it in GitHub Desktop.
a header dsl for pif who loves perl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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