Monday, 30 September 2013

Count the number of lines [lex program part3 ]


   
%{

int i=0;

%}

str ([a-zA-Z_.,][ ])*

%%

{str}

.* i++;

%%

main()

{

yylex();

printf("%d",i);

}
        
    


lex part 4

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