fork download
  1. %{
  2. #include <stdio.h>
  3. %}
  4. %%
  5. "<"[^>] *> {printf("%s",yytext);}
  6. . ;
  7. %%
  8. int yywrap(){
  9. return 1;
  10. }
  11. int main(){
  12. extern FILE * yyin;yyin = fopen("basic.txt","r");
  13. yylex();
  14. return 0;
  15. }
Success #stdin #stdout #stderr 0.02s 6896KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/OCajYT/prog:2:2: Syntax error: Operator expected
ERROR: /home/OCajYT/prog:15:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit