fork download
  1. %{
  2. #include<stdio.h>
  3. int nbMots = 0;
  4. %}
  5.  
  6. open \/\*
  7. close \*\/
  8.  
  9. %%
  10.  
  11. aa {printf(1);}
  12. b?a+b? {printf(2); }
  13. b?a*b? {printf(3); }
  14. .+ {printf(4); }
  15.  
  16. %%
  17.  
  18. int yywrap() {}
  19.  
  20. int main() {
  21. yylex();
  22. return 0;
  23. }
Success #stdin #stdout #stderr 0.04s 6804KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/6NNqtg/prog:23:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit