l%{
#include <stdio.h>
int v = 0, c = 0;
%}
%%
[ \t\n] ;
[aeiouAEIOU] { v++; }
[a-zA-Z] { c++; }
. ;
%%
int main() {
printf("Enter string: ");
yylex();
printf("Vowels: %d\n", v);
printf("Consonants: %d\n", c);
return 0;
}
int yywrap() {
return 1;
}
bCV7CiNpbmNsdWRlIDxzdGRpby5oPgppbnQgdiA9IDAsIGMgPSAwOwolfQoKJSUKWyBcdFxuXSA7ClthZWlvdUFFSU9VXSB7IHYrKzsgfQpbYS16QS1aXSB7IGMrKzsgfQouIDsKCiUlCgppbnQgbWFpbigpIHsKICAgIHByaW50ZigiRW50ZXIgc3RyaW5nOiAiKTsKICAgIHl5bGV4KCk7CiAgICBwcmludGYoIlZvd2VsczogJWRcbiIsIHYpOwogICAgcHJpbnRmKCJDb25zb25hbnRzOiAlZFxuIiwgYyk7CiAgICByZXR1cm4gMDsKfQoKaW50IHl5d3JhcCgpIHsKICAgIHJldHVybiAxOwp9Cg==