fork download
  1. %{
  2. int v=0,c=0;
  3. %}
  4.  
  5. %%
  6. [AEIOUaeiou] { printf("Vowels: %s \n",yytext);v++}
  7. [A-Za-z] { printf("consonents: %s \n",yytext);c++}
  8. %%
  9.  
  10. int main()
  11. {
  12. printf("Enter character: \n");
  13. yylex();
  14. return 0;
  15. }
Success #stdin #stdout #stderr 0.02s 6944KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/T4NmNp/prog:15:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit