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