fork download
  1. /* Program a: Hello World */
  2. %%
  3. "Hello World" { printf("%s\n", yytext); }
  4. . ; /* Ignore other input */
  5. %%
  6.  
  7. int main() {
  8. yylex();
  9. return 0;
  10. }
  11.  
  12. int yywrap() {
  13. return 1;
  14. }
Success #stdin #stdout #stderr 0.03s 6960KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/pddx1z/prog:3:14: Syntax error: Operator expected
ERROR: /home/pddx1z/prog:14:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit