Created
October 29, 2014 01:57
-
-
Save qrtt1/b9016ccafdea1714d4d9 to your computer and use it in GitHub Desktop.
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
%{ | |
#include "parser.h" | |
%} | |
%% | |
[ \t\n\r]+ {return ACTION_SKIP;} | |
"PLAY" {return ACTION_PLAY;} | |
"STOP" {return ACTION_STOP;} | |
"SEEK" {return ACTION_SEEK;} | |
[0-9]+ {return ACTION_NUMBER;} | |
[a-z0-9]+"://".+ {return ACTION_RESOURCE;} | |
%% | |
int yywrap(void) { | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment