fork download
  1. %{
  2. #include<iostream>
  3.  
  4. %}
  5.  
  6. %%
  7.  
  8. [A-Z] {cout<<"Uppercase Letters";}
  9. [a-z] {cout<<"Lowercase Letters";}
  10. . {}
  11.  
  12. %%
  13.  
  14. int main(){
  15. yylex();
  16. }
  17.  
  18. int yywrap(){
  19. return 1;
  20. }
Success #stdin #stdout #stderr 0.02s 6972KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/goCUMV/prog:2:5: Syntax error: Operator expected
ERROR: /home/goCUMV/prog:20:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit