fork download
  1. %{
  2.  
  3. %}
  4.  
  5. %%
  6. \n printf("first program of lex")
  7.  
  8. %%
  9. int main()
  10. {
  11.  
  12. yylex();
  13.  
  14. return 0;
  15. }
  16. int main()
  17. {
  18.  
  19. yywrap();
  20.  
  21. return 0;
  22. }
Success #stdin #stdout #stderr 0.03s 6976KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/e0o2iJ/prog:22:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit