[antlr-interest] Knowing line and position in tree parser
BeRniTo
bernito.lb at gmail.com
Sat Nov 20 18:34:23 PST 2010
I'm doing type checking within a Tree Grammar and want to include line and
position (if possible) of where the error was.
For example:
int i = "a";
When analysing the expression part the type won't match so I want to emit an
error saying "type missmatch in X:Y" where X would be the line number and Y
the position where the error happened.
I don't know where to start searching in the API. I think an example would
be much better.
Thanks!
More information about the antlr-interest
mailing list