fork download
  1. %{
  2. int v=0;
  3. int c=0;
  4. %}
  5. %%
  6. [aeiouAEIOU]{v++;}
  7. [a-zA-Z && [^aeiouAEIOU]]{c++;}
  8. %%
  9. int yywrap(){}
  10. int main()
  11. {
  12. printf("Enter the string: ");
  13. yylex();
  14. printf("%d",v);
  15. printf("%d",c);
  16. return 0;
  17. }
Success #stdin #stdout #stderr 0.02s 7008KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/VqUBn1/prog:17:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit