fork download
  1. %{
  2. #include<math.h>
  3. %}
  4. DIGIT [0-9]
  5.  
  6. %%
  7. {DIGIT}+ {printf("%d",atoi(yytext));}
  8. {DIGIT}+ "."{DIGIT}+ {printf("%5.2f",atof(yytext));}
  9. [" "\t]+ {printf(" ");}
  10. . {printf()"<UNC>";}
  11. %%
Success #stdin #stdout #stderr 0.03s 6904KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
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