%% if | else|while|int {printf("Keyword");} [a-z]([a-z][0-9])*{printf("Identifier");} [0-9]*{printf("Number");} *{printf("Invaid");} %% main() { yylex(); return 0; } int yywrap() { }
Standard input is empty
Standard output is empty
ERROR: /home/WIVbgF/prog:15:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit