What's the best way to associate line and column numbers with a token using Flex? I've tried something like this:
"token" { sourceColumnNumber += yyleng; return tokenDefine; }
.........................
"\n" { sourceColumnNumber = 1; sourceLineNumber ++; }
I seem to get improper results with certain productions. Thanks for any information!