[antlr-interest] getting the correct line # from an exception
Mark Felzer
mark.felzer at gmail.com
Fri Mar 3 19:16:31 PST 2006
Dear Friends,
When my grammar contains an illegal token an exception is properly thrown
The exceptions message seems to always indicate the line # as being "1"
which is sorta useless when it comes to debugging,
My grammar indicates that "\n\r" should be skipped by the lexer, should I
increment something each time "\n\r" is encountered so that the exception
translates to the correct line?
Thank You Very Much,
Mark F.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060303/e8faa105/attachment.html
More information about the antlr-interest
mailing list