fork download
  1. %{
  2. int lineno=0;
  3. %}
  4. %line.*\n
  5. %%
  6. {line}{printf("%5d %s",lineno++ yytext);
  7. }
  8. main()
  9. {
  10. yylex();
  11. return 0;
  12. }
Success #stdin #stdout #stderr 0.03s 6808KB
stdin
NIkhitha 
stdout
Standard output is empty
stderr
ERROR: /home/F1Wiui/prog:12:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit