fork download
  1. %{
  2. #include<stdio.h>
  3. #include<stdlib.h>
  4. int count =0;]
  5. %}
  6. %%
  7. [a-zA-Z0-9_]+c++;
  8. "\n" printf("%d",c); c=0;
  9. .;
  10. %%
  11. int main()
  12. {
  13. yylex();
  14. return 0;
  15. }
  16. int yywrap(void) {}
Success #stdin #stdout #stderr 0.03s 6936KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/pjCo7r/prog:16:18: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit