%{
#include<stdio.h>
int line=0, word=0, ch=0;
%}
%%
[a-z|A-Z|0-9] {ch++;}
" " {word++;}
"\n" {line++; word++;}
%%
int yywrap(void){}
void main(int argc, char* argv[]){
/*yyin = fopen(argv[1],"r");*/
yylex();
printf("Line = %d\n",line);
printf("Word = %d\n",word);
printf("Character = %d\n",ch);
}
JXsKI2luY2x1ZGU8c3RkaW8uaD4KaW50IGxpbmU9MCwgd29yZD0wLCBjaD0wOwolfQolJQpbYS16fEEtWnwwLTldIHtjaCsrO30KIiAiIHt3b3JkKys7fQoiXG4iIHtsaW5lKys7IHdvcmQrKzt9CiUlCmludCB5eXdyYXAodm9pZCl7fQp2b2lkIG1haW4oaW50IGFyZ2MsIGNoYXIqIGFyZ3ZbXSl7CiAvKnl5aW4gPSBmb3Blbihhcmd2WzFdLCJyIik7Ki8KIHl5bGV4KCk7CiBwcmludGYoIkxpbmUgPSAlZFxuIixsaW5lKTsKIHByaW50ZigiV29yZCA9ICVkXG4iLHdvcmQpOwogcHJpbnRmKCJDaGFyYWN0ZXIgPSAlZFxuIixjaCk7Cn0=