line count and column count
We can instruct the lexer to keep a count of the line that it is on in the input file by using the %line directive.
- We can access that line count using the standard, built-in JFlex variable, yyline
We can instruct the lexer to keep a count of the column that it is on in a line by using the %column directive.
- We can access that line count using the standard, built-in JFlex variable, yycolumn