The question is self explanatory.
Here is the code:
%{
%}
%%
[aeiouAEIOU].[a-zA-Z0-9.]+ printf("");
[a-zA-Z0-9]+ printf("%s",yytext);
%%
main()
{
extern FILE *yyin;
yyin=fopen("new","r");
yylex();
}
Here is the code:
%{
%}
%%
[aeiouAEIOU].[a-zA-Z0-9.]+ printf("");
[a-zA-Z0-9]+ printf("%s",yytext);
%%
main()
{
extern FILE *yyin;
yyin=fopen("new","r");
yylex();
}
dosent this program also print words starting with a,e,i,o,u,A,E,I,O,U??
ReplyDelete