fork download
  1. %{
  2. #include<stdio.h>
  3. %}
  4.  
  5. %%
  6. [A-Z]+[\t\n ] { printf("%s",yytext); }
  7. . ;
  8. %%
  9.  
  10. main( )
  11. {
  12. printf("Enter some string with capital words in between\n");
  13. yylex();
  14. }
  15.  
  16. int yywrap( )
  17. {
  18. return 1;
  19. }
Success #stdin #stdout #stderr 0.02s 6848KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/YWAhxi/prog:2:9: Syntax error: Operator expected
ERROR: /home/YWAhxi/prog:19:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit