fork download
  1. %%
  2.  
  3. [a-z] { printf("%c is lowercase\n", yytext[0]); }
  4. [A-Z] { printf("%c is uppercase\n", yytext[0]); }
  5.  
  6.  
  7. %%
  8.  
  9. int main() {
  10. yylex(); // Lexical analyzer function call
  11. return 0;
  12. }
  13.  
Success #stdin #stdout #stderr 0.02s 6976KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/kfjfAe/prog:12:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit