Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %{
- # include "fb1-5.tab.h"
- %}
- %%
- "+" { return ADD; }
- "-" { return SUB; }
- "*" { return MUL; }
- "/" { return DIV; }
- "|" { return ABS; }
- [0-9]+ { yylval = atoi(yytext); return NUMBER; }
- \n { return EOL; }
- [ \t] { }
- . { printf("Mystery character %c\n", *yytext); }
- %%
Add Comment
Please, Sign In to add comment