fork download
  1. %{
  2. %}
  3.  
  4. %%
  5. "<"[^>]*> {printf("%s\n", yytext); } /* if anything enclosed in
  6. these < > occur print text*/
  7. . ; // else do nothing
  8. %%
  9.  
  10. int yywrap(){}
  11.  
  12. int main(int argc, char*argv[])
  13. {
  14. // Open tags.txt in read mode
  15. extern FILE *yyin = fopen("tags.txt","r");
  16.  
  17. // The function that starts the analysis
  18. yylex();
  19.  
  20. return 0;
  21. }
  22.  
Success #stdin #stdout #stderr 0.03s 6964KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/1rLN9f/prog:5:3: Syntax error: Operator expected
ERROR: /home/1rLN9f/prog:21:2: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit