%{ int lineno=0; %} %line.*\n %% {line}{printf("%5d %s",lineno++ yytext); } main() { yylex(); return 0; }
NIkhitha
Standard output is empty
ERROR: /home/F1Wiui/prog:12:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit