%{ #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);
}
JXsgI2luY2x1ZGU8c3RkaW8uaD4KaW50IGxpbmU9MCwgd29yZD0wLCBjaD0wOwogJX0gCiUlIApbYS16fEEtWnwwLTldIHtjaCsrO30gCiIgIiB7d29yZCsrO30gCiJcbiIge2xpbmUrKzsgd29yZCsrO30gCiUlIAppbnQgeXl3cmFwKHZvaWQpe30KIHZvaWQgbWFpbihpbnQgYXJnYywgY2hhciogYXJndltdKXsKIC8qeXlpbiA9IGZvcGVuKGFyZ3ZbMV0sInIiKTsqLwogeXlsZXgoKTsKIHByaW50ZigiTGluZSA9ICVkXG4iLGxpbmUpOyAKcHJpbnRmKCJXb3JkID0gJWRcbiIsd29yZCk7IApwcmludGYoIkNoYXJhY3RlciA9ICVkXG4iLGNoKTsgCn0K