%{ #include<math.h> %} DIGIT [0-9] %% {DIGIT}+ {printf("%d",atoi(yytext));} {DIGIT}+ "."{DIGIT}+ {printf("%5.2f",atof(yytext));} [" "\t]+ {printf(" ");} . {printf()"<UNC>";} %%
Standard input is empty
Standard output is empty
ERROR: /home/SPYPd3/prog:2:1: Syntax error: Operator expected ERROR: /home/SPYPd3/prog:11:2: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit