%{ #include <stdio.h> %} %% [0-9]+ { printf("%s\n", yytext); } . { /* ignore other characters */ } %% int main(void) { yylex(); return 0; } int yywrap(void) { return 1; }
a12dshdhs345
Standard output is empty
ERROR: /home/SHqswJ/prog:2:1: Syntax error: Operator expected ERROR: /home/SHqswJ/prog:17:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit