/*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;
}
LypsZXggcHJvZ3JhbSB0byBjb3VudCBudW1iZXIgb2Ygd29yZHMqLwolewojaW5jbHVkZTxzdGRpby5oPgojaW5jbHVkZTxzdHJpbmcuaD4KaW50IGkgPSAwOwolfQovKiBSdWxlcyBTZWN0aW9uKi8KJSUKKFthLXpBLVowLTldKSoge2krKzt9IC8qIFJ1bGUgZm9yIGNvdW50aW5nCiBudW1iZXIgb2Ygd29yZHMqLwoiXG4iIHtwcmludGYoIiVkXG4iLCBpKTsgaSA9IDA7fQolJQppbnQgeXl3cmFwKHZvaWQpCnsKfQppbnQgbWFpbiAoKQp7CiAvLyBUaGUgZnVuY3Rpb24gdGhhdCBzdGFydHMgdGhlIGFuYWx5c2lzCiB5eWxleCgpOwogcmV0dXJuIDA7Cn0=