[antlr-interest] ParseTree::getLine problem

Peter Bulychev peter.bulychev at gmail.com
Thu Aug 28 06:11:58 PDT 2008


Hello.

I have a parse tree and I want to know, in which lines of parsed file do
nodes of this tree reside.

ParseTree class itself doesn't have getLine function, but its parent
(BaseTree class) does have.
Unfortunately its getLine function seems to be constantly zero:   "public
int getLine() {\n return 0;\n}"

Did I do something wrong and what workaround can be invented?

Thank you.

p.s.  I use ANTLR 3.1.

-- 
Best regards,
Peter Bulychev.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080828/fac159ab/attachment.html 


More information about the antlr-interest mailing list