fork download
  1. %{
  2. #include<stdio.h>
  3. %}
  4.  
  5. vowels "a"|"e"|"i"|"o"|"u"
  6.  
  7. %%
  8. {vowels} {printf("%s is an vowels\n",yytext);}
  9. .|\n {printf("%s is an consonant\n",yytext);}
  10. %%
  11. int yywrap(){
  12. return 0;
  13. }
  14. int main(){
  15. yylex();
  16. }
  17.  
Success #stdin #stdout #stderr 0.02s 6952KB
stdin
yash
stdout
Standard output is empty
stderr
ERROR: /home/0CURhT/prog:16:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit