fork download
  1. {%
  2. #include<stdio.h>
  3. int l=0;
  4. %}
  5. %%
  6. \n {l++};
  7. . ;
  8. %%
  9. main()
  10. {
  11. yylex()
  12. printf("total lines %d",l);
  13. }
Success #stdin #stdout #stderr 0.02s 6940KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/TnEFXH/prog:2:0: Syntax error: Operator expected
ERROR: /home/TnEFXH/prog:13:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit