fork download
  1. %{
  2. #include <stdio.h>
  3. #include <ctype.h>
  4. %}
  5.  
  6. %%
  7. [a-z]+ {
  8. int i;
  9. for (i = 0; yytext[i] != '\0'; i++)
  10. putchar(toupper(yytext[i]));
  11. }
  12.  
  13. .|\n { putchar(yytext[0]); }
  14. %%
  15.  
  16. int main()
  17. {
  18. yylex();
  19. return 0;
  20. }
  21.  
  22.  
Success #stdin #stdout #stderr 0.02s 6880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/VnhsbD/prog:21:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit