fork download
  1. %%writefile program.l
  2.  
  3. %{
  4. #include <stdio.h>
  5. %}
  6.  
  7. %%
  8. [a-z] { printf("%c", yytext[0] - 32); }
  9. .|
  10. { printf("%s", yytext); }
  11. %%
  12.  
  13. int main() {
  14. yylex();
  15. return 0;
  16. }
Success #stdin #stdout #stderr 0.02s 6976KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/JcC3Ka/prog:16:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit