%{ #include<stdio.h> %} %% (1 + 01)* (0 + λ) {printf("valid");} %% void main() { printf("enter string:"); yylex(); }
01010
Standard output is empty
ERROR: /home/MfFDAN/prog:11:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit