%{
#include<stdio.h>
%}
%%
[a,e,i,o,u,A,E,I,O,U]
{
printf("%s is a vowel\n",yytext);
}
[a-z A-Z]
{
printf("%s is a consonant\n",yytext);
}
[\t\n]+
{
printf("%s is an unk\n",yytext);
}
%%
int main()
{
printf("Enter");
yylex();
return 0;
}
int yywrap()
{
return 1;
}
JXsKICAjaW5jbHVkZTxzdGRpby5oPgogICV9CiAgCiAgJSUKICBbYSxlLGksbyx1LEEsRSxJLE8sVV0KICB7CiAgICBwcmludGYoIiVzIGlzIGEgdm93ZWxcbiIseXl0ZXh0KTsKICB9CiAgW2EteiBBLVpdCiAgewogICAgcHJpbnRmKCIlcyBpcyBhIGNvbnNvbmFudFxuIix5eXRleHQpOwogIH0KICBbXHRcbl0rCiAgewogICAgcHJpbnRmKCIlcyBpcyBhbiB1bmtcbiIseXl0ZXh0KTsKICB9CiAgJSUKICBpbnQgbWFpbigpCiAgewogICAgcHJpbnRmKCJFbnRlciIpOwogICAgeXlsZXgoKTsKICAgIHJldHVybiAwOwogIH0KICBpbnQgeXl3cmFwKCkKICB7CiAgICByZXR1cm4gMTsKICB9CiAg