%{ int c ; %} %% ^\n { return 0 ;} . { c++ ; } \n { printf("total ligne %d\n",c) ; } %% int yywrap() { return 1; } main() { c=0 ; yylex() ; printf("total final : %d\n",c) ; }
Standard input is empty
Standard output is empty
ERROR: /home/1m0cl3/prog:2:4: Syntax error: Operator expected ERROR: /home/1m0cl3/prog:18:1: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit