int num_M = 0, num_U = 0; // count for words 'Moscow' and 'University' %% Moscow num_M++; University num_U++; %% main() { yylex(); printf("%d\n%d\n", num_M, num_U); }
Standard input is empty
Standard output is empty
ERROR: /home/yPVxWy/prog:13:1: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit