%{ #include <stdio.h>; %} %% [a-z]([a-z]|[0-9])* {printf("identifier");} [0-9]* {printf("number");} .* {printf("invalid");} %% main() { yylex(); return 0; } int yywrap() { }
665
Standard output is empty
ERROR: /home/89LHAD/prog:16:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit