%{ #include<stdio.h> %} vowels "a"|"e"|"i"|"o"|"u" %% {vowels} {printf("%s is an vowels\n",yytext);} .|\n {printf("%s is an consonant\n",yytext);} %% int yywrap(){ return 0; } int main(){ yylex(); }
yash
Standard output is empty
ERROR: /home/0CURhT/prog:16:1: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit