Friday, April 12, 2019

lex program for the language of all strings contains exactly two 0’s


%{
        #include<stdio.h>
%}
%%
[1]*0[1]*0[1]* printf("valid");
.* printf("Invalid");
%%
main()
{
     printf("Enter Language of strings with exactly two 0's::");
        yylex();
}
ScreenShot:

No comments:

Post a Comment