fork download
  1. %%
  2. if | else|while|int {printf("Keyword");}
  3. [a-z]([a-z][0-9])*{printf("Identifier");}
  4. [0-9]*{printf("Number");}
  5. *{printf("Invaid");}
  6. %%
  7. main()
  8. {
  9. yylex();
  10. return 0;
  11. }
  12. int yywrap()
  13. {
  14.  
  15. }
Success #stdin #stdout #stderr 0.02s 6836KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/WIVbgF/prog:15:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit