Saturday, 8 September 2018

LEX TOOL ECHO AND REJECT KEY WORD COMPILER DESIGN GTU

%{
%}
%%
[a-z]+ {
printf("\nString containing lowercase=");
ECHO;
}
[A-Z]+ {
printf("\nString containing uppercase =");
ECHO;
REJECT;
}
%%
main()
{
yylex();
}
int yywrap()
{
return 1;
}

No comments:

Post a Comment

It's time To increase blogging capability. To have a chance to contribute in digital world. Any Interested People who want to make t...