fork(1) download
  1. %%
  2. [a-z]+ {printf("small letter\n");}
  3. [A-Z]+ {printf("capital letter\n");}
  4. %%
  5. int yywrap()
  6. {
  7. return 1;
  8. }
  9. int main()
  10. {
  11. printf("small letter and capital letter recognition\n");
  12. yylex();
  13. return 0;
  14. }
  15.  
Success #stdin #stdout #stderr 0.03s 6948KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/qAgGJX/prog:14:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit