7 lines
122 B
Plaintext
7 lines
122 B
Plaintext
%lexer // for Program 4.2
|
|
"+" %PLUS
|
|
"-" %MINUS
|
|
"*" %TIMES
|
|
[0-9]+ %INT { yylval = Int32.Parse(yytext); }
|
|
[ \t\n\r] ;
|