Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %{
- #include "y.tab.h"
- %}
- %%
- [-+*/=;()\n] {return *yytext;}
- [0-9]+ {yylval = atoi(yytext); return NUMBER;}
- [ \t] ;
- . {printf("unrecgonised character"); return 0;}
- %%
- int yywrap(void)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement