i'm trying to get line number in an ANTLR3 tree grammar (the code generated by ANTLR3 is of the TreeParser class).
google only found solutions for ANTLR2 which sadly don't work in ANTLR3.
to clarify i'm trying to access the line number in the .g file itself.
i think i have to overwrite a method or extend a class i just don't know which one.
tnx in advance
Edit: i should point out i'm using the java api