fork download
  1. %{
  2.  
  3. #include<stdio.h>
  4.  
  5. %}
  6.  
  7. %%
  8.  
  9. [0-9]+ {printf("%s\n",yytext);}
  10.  
  11. .|\n {}
  12.  
  13. %%
  14.  
  15. int main()
  16.  
  17. {
  18.  
  19. yylex();
  20.  
  21. }
  22.  
  23. int yywrap()
  24.  
  25. {
  26.  
  27. return 1;
  28.  
  29. }
Success #stdin #stdout #stderr 0.03s 6940KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/hq0R22/prog:29:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit