fork download
  1. %{
  2. int c ;
  3. %}
  4. %%
  5. ^\n { return 0 ;}
  6. . { c++ ; }
  7. \n { printf("total ligne %d\n",c) ; }
  8. %%
  9. int yywrap()
  10. {
  11. return 1;
  12. }
  13. main()
  14. {
  15. c=0 ;
  16. yylex() ;
  17. printf("total final : %d\n",c) ;
  18. }
Success #stdin #stdout #stderr 0.02s 6912KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/1m0cl3/prog:2:4: Syntax error: Operator expected
ERROR: /home/1m0cl3/prog:18:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit