Friday, April 12, 2019

Lex Program for Which are the strings accepted by (“abc”)*


%{
#include<stdio.h>
%}
%%
("abc")* {printf("valid");}
.* {printf("invalid");}
%%     
main()
{
yylex();
}
ScreenShot:

No comments:

Post a Comment