fork download
  1. %{
  2. #include<studio.h>
  3. #include<stdlib.h>
  4. int count = 0,%]
  5. %}
  6. %%
  7. [a-zA-Z][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){}
  17.  
  18.  
Success #stdin #stdout #stderr 0.02s 6976KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/Yj0Wfk/prog:17:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit