[antlr-interest] Wondering about bogus getLine() implementation
Georg Lenz
lenzsimon at gmx.de
Fri Aug 12 09:56:09 PDT 2005
Hello
I am just wondering about the bogus getLine() getColumn() Implementation in
BaseAST (not overwritten in any subtype)
public int getLine() {
return 0;
}
public int getColumn() {
return 0;
}
Okay, in most cases you don't care about line numbers but in my case I do.
So what is the reason for this?! Do I miss anything?
I simply assumed I could pick up that information in the parse tree??
Regards
Georg
More information about the antlr-interest
mailing list