/*lex program to count number of words*/
%{
#include<stdio.h>
#include<string.h>
int i = 0;
%}
/* Rules Section*/
%%
([a-zA-Z0-9])* {i++;} /* Rule for counting
number of words*/
"\n" {printf("%d\n", i); i = 0;}
%%
int yywrap(void){}
int main()
{
// The function that starts the analysis
yylex();
return 0;
}
LypsZXggcHJvZ3JhbSB0byBjb3VudCBudW1iZXIgb2Ygd29yZHMqLwoleyAKI2luY2x1ZGU8c3RkaW8uaD4gCiNpbmNsdWRlPHN0cmluZy5oPiAKaW50IGkgPSAwOyAKJX0gCiAgCi8qIFJ1bGVzIFNlY3Rpb24qLwolJSAKKFthLXpBLVowLTldKSogICAge2krKzt9IC8qIFJ1bGUgZm9yIGNvdW50aW5nICAKICAgICAgICAgICAgICAgICAgICAgICAgICBudW1iZXIgb2Ygd29yZHMqLwogIAoiXG4iIHtwcmludGYoIiVkXG4iLCBpKTsgaSA9IDA7fSAKJSUgCiAgCmludCB5eXdyYXAodm9pZCl7fSAKICAKaW50IG1haW4oKSAKeyAgICAKICAgIC8vIFRoZSBmdW5jdGlvbiB0aGF0IHN0YXJ0cyB0aGUgYW5hbHlzaXMgCiAgICB5eWxleCgpOyAKICAKICAgIHJldHVybiAwOyAKfSA=