fork download
  1. LETTER [a-zA-Z]
  2. DIGIT [0-9]
  3. %%
  4. begin {printf("Recognized KeyWORD:%s\n",yytext);}
  5. if {printf("Recognized KeyWORD:%s\n",yytext);}
  6. {LETTER}({LETTER}|{DIGIT})*{
  7. printf("Recognized ID:%s\n",yytext);}
  8. %%
  9. main()
  10. {
  11. yylex();
  12. }
Success #stdin #stdout #stderr 0.02s 6872KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/657mEG/prog:12:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit