%{
#include<stdio.h>
%}
%%
if | else | while | for {printf("%S is a keyword",yytext);}
%%
int main()
{
printf("\n Enter the string: ");
yylex();
}
int yywrap()
{
return 1;
}
Standard input is empty
Standard output is empty
ERROR: /home/aPPwRR/prog:18:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit