fork download
  1. %{
  2. %}
  3.  
  4. %%
  5. [A-Z]+[\t\n ] { printf("%s is a capital word\n",yytext); }
  6. .|\n ;
  7. %%
  8.  
  9. int yywrap( )
  10. {
  11. return 1;
  12. }
  13. int main( )
  14. {
  15. printf("Enter String :\n");
  16. yylex();
  17. }
  18.  
Success #stdin #stdout #stderr 0.03s 6888KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/Xcv59d/prog:17:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit