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