%{ #include <stdio.h> %} %% (0|1)*001 { printf("Matched: %s\n", yytext); } .|\n ; /* ignore other input */ %% int main(void) { yylex(); return 0; }
0011
Standard output is empty
ERROR: /home/NPdJ5r/prog:13:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit