%{ #include<stdio.h> int vowel=0, conso=0; %} %% [aeiouAEIOU] vowel++; [a-zA-Z] conso++; %% int yywrap(){} void main(){ yylex(); printf("Vowels : %d\nConsonants : %d\n",vowel,conso); }
Standard input is empty
Standard output is empty
ERROR: /home/y9jhBr/prog:13:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit