%{
#include <stdio.h>
int vowels = 0, consonants = 0;
%}

%%
[aeiouAEIOU]    { vowels++; }
[a-zA-Z]        { consonants++; }
\n              { return 0; }  /* Stops execution when you press Enter */
.               { /* Ignore spaces and punctuation */ }
%%

int main() {
    printf("Enter string: ");
    yylex();
    printf("Vowels: %d\nConsonants: %d\n", vowels, consonants);
    return 0;
}
int yywrap() { return 1; }