Total number of chars
We can instruct the lexer to keep a count of the total number of characters that it has seen thus far in the input file by using the %char directive.
- We can access that character count using the standard, built-in JFlex variable, yychar