Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %{
- #include "y.tab.h"
- %}
- %%
- [0-9]+.[0-9]+ {yylval.num=atof(yytext); return NUMBER;}
- [0-9]+ {yylval.num=atoi(yytext); return number;}
- [-+*/^&!|] {return yytext[0];}
- COS|cos {return cos1; }
- SIN|sin {return sin1; }
- TAN|tan {return tan1; }
- POW|pow {return pow1; }
- %%
- int yywrap(){
- return 1;
- }
Add Comment
Please, Sign In to add comment