fork download
  1. %{
  2. #include<stdio.h>
  3. int lines=0,tabs=0,space=0,characters=0;
  4. %}
  5.  
  6.  
  7. %%
  8. \n {lines++;}
  9. " " {space++;}
  10. \t {tabs++;}
  11. . {characters++;}
  12. %%
  13.  
  14. int yywrap() {return 1; }
  15.  
  16. int main()
  17. {
  18. yylex();
  19. return 0;
  20. }
Success #stdin #stdout #stderr 0.03s 6832KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/v4kNbV/prog:2:3: Syntax error: Operator expected
ERROR: /home/v4kNbV/prog:20:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit