tp-langages-formels/syntaxique/exprlex.l

13 lines
138 B
Plaintext
Raw Normal View History

2020-05-15 23:51:08 +00:00
%option noyywrap
DIG [0-9]
%%
{DIG}+ { yylval.i = atoi(yytext); return INT; }
[+*()] { return *yytext; }
[ \n] { /* ignore */ }
%%