%{ int count=0; %} %% "good" {++count;} . %% main() { yylex(); printf("%d\n",count); }
Standard input is empty
Standard output is empty
ERROR: /home/VHCAbi/prog:3:4: Syntax error: Operator expected ERROR: /home/VHCAbi/prog:12:1: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit