%{ #include<stdio.h> %} %% [a-zA-Z0-9]*x {printf("found 'x' %s\n",yytext);} .|\n { } %% int main(){ yylex(); return 0; }
xhh
Standard output is empty
ERROR: /home/9EbSaS/prog:13:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit