fork download
  1. %{
  2. #include<stdio.h>
  3. char st[20];
  4. int i;
  5. %}
  6. le [a][b][c]
  7. %%
  8. {le} {printf("ABC");}
  9. . {printf("%c",yytext[0]);}
  10. %%
  11. int yywrap(){}
  12. int main()
  13. {
  14. yylex();
  15. }
Success #stdin #stdout #stderr 0.02s 6704KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/0kMyNw/prog:2:9: Syntax error: Operator expected
ERROR: /home/0kMyNw/prog:15:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit