It reads every line and prints it. It gives a line gap between every line.
for example
appears
%{
%}
%%
\n {printf("\n\n",yytext);}
%%
main()
{
extern FILE *yyin;
yyin=fopen("new","r");
yylex();
}
for example
I am going
She is going
She is going
appears
I am going
She is going
She is going
%{
%}
%%
\n {printf("\n\n",yytext);}
%%
main()
{
extern FILE *yyin;
yyin=fopen("new","r");
yylex();
}
No comments:
Post a Comment