Monday 30 September 2013

Accept a string ending with abb [ lex program part 5 ]


       

%{

%}

str [a-z A-Z]*(abb)

%%

{str} printf("\n accepted");

.* printf("\n rejected");

%%

main()

{

printf("Enter the string:");

yylex();

}
        
    


0 Comments:

Post a Comment

Facebook Twitter Delicious Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | coupon codes