-
-
Save jconnolly/1524974 to your computer and use it in GitHub Desktop.
MA translator plugin for chef
This file contains 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
static int i_seen = 0; | |
%} | |
WC [A-Za-z'] | |
NW [^A-Za-z'] | |
%start INW NIW | |
%% | |
\\[^ \n]+ ECHO; | |
[.!?]$ { BEGIN NIW; i_seen = 0; | |
printf("%c!?!",yytext[0]); } | |
"Bu" { BEGIN INW; printf("Bah"); } | |
"bu" { BEGIN INW; printf("bah"); } | |
"Di" { BEGIN INW; printf("Dee"); } | |
"di" { BEGIN INW; printf("dee"); } | |
"De" { BEGIN INW; printf("Dee"); } | |
"de" { BEGIN INW; printf("dee"); } | |
"Mo" { BEGIN INW; printf("Moah"); } | |
"mo" { BEGIN INW; printf("moah"); } | |
"sp" { BEGIN INW; printf("spa"); } | |
"c" { BEGIN INW; printf("sh"); } | |
"4g" { BEGIN INW; printf("WHAYEFAIYE");} | |
"15" { BEGIN INW; printf("aightOH-toozickbee");} | |
. { BEGIN INW; ECHO; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment