%{
int line_no = 0;
int char_no = 0;
%}
%%
\n ++line_no;
. ++char_no;
end return 0;
%%
int yywrap()
{}
int main()
{
yylex();
printf
("
number of lines
= %d, number of chars = %d\n", line_no, char_no );
return 0;
}
JXsgCmludCBsaW5lX25vID0gMDsgCmludCBjaGFyX25vID0gMDsgCiV9IAolJSAKXG4gKytsaW5lX25vOyAKLiArK2NoYXJfbm87IAplbmQgcmV0dXJuIDA7IAolJSAKaW50IHl5d3JhcCgpCnt9IAppbnQgbWFpbigpCnsgCiAKeXlsZXgoKTsgCnByaW50ZigibnVtYmVyIG9mIGxpbmVzID0gJWQsIG51bWJlciBvZiBjaGFycyA9ICVkXG4iLCBsaW5lX25vLCBjaGFyX25vICk7IAogCnJldHVybiAwOyAKfQo=