%{ #include<stdio.h> int vowels=0; int cons=0; %} %% [aeiouAEIOU] {vowels++;} [a-zA-Z] {cons++;} %% int yywrap() { return 1; } main() { printf(“Enter the string.. at end press ^d\n”); yylex(); }
vidyasree
Standard output is empty
ERROR: /home/Fiahpd/prog:18:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit