%{ #include<stdio.h> %} %% [1*001+01*]+] {printf("valid");} .* {printf("invalid"); } %% int main() { printf("\n Enter the input"); yylex(); return 0; }
10010
Standard output is empty
ERROR: /home/UrM7Bl/prog:17:1: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit