fork download
  1. %{
  2. int v=0;c=0;
  3. %}
  4.  
  5. %%
  6.  
  7. [aeiouAEIOU] {v++}
  8. [a-zA-Z] {c++}
  9.  
  10. %%
  11.  
  12. int main()
  13. {
  14. yylex();
  15. pritnf("%d\n %d",v,c);
  16. return 0;
  17. }
  18. int yywrap()
  19. {
  20. return 1;
  21. }
  22.  
Success #stdin #stdout #stderr 0.03s 6952KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/CRaWwK/prog:22:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit