Advertisement
cd62131

Flex: orig.l

Jun 16th, 2017
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. %option noyywrap noinput nounput
  2. %%
  3. [0-9]+ { yylval = atoi(yytext); return KAZU; }
  4. [\(\)\+\-\*\/;] { return yytext[0]; }
  5. mplus { return MPLUS; }
  6. mminus { return MMINUS; }
  7. mclear { return MCLEAR; }
  8. mprint { return MPRINT; }
  9. [ \t\n]+|.|\/\/.* /* do nothing */
  10. %%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement