Guest User

Untitled

a guest
Feb 15th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. %{
  2. #include "y.tab.h"
  3. %}
  4.  
  5. %%
  6. [0-9]+.[0-9]+ {yylval.num=atof(yytext); return NUMBER;}
  7. [0-9]+ {yylval.num=atoi(yytext); return number;}
  8. [-+*/^&!|] {return yytext[0];}
  9. COS|cos {return cos1; }
  10. SIN|sin {return sin1; }
  11. TAN|tan {return tan1; }
  12. POW|pow {return pow1; }
  13. %%
  14.  
  15. int yywrap(){
  16. return 1;
  17. }
Add Comment
Please, Sign In to add comment