[antlr-interest] Java..getLine and getColumn not include in delivered antlr.jar

Ric Klaren klaren at cs.utwente.nl
Mon Feb 9 06:35:14 PST 2004


On Mon, Feb 09, 2004 at 01:42:32PM -0000, janoetting wrote:
> I want to use the methods "getColumn" and "getLine()" of CommonAST.
> These methods are documented in the Code API.
> But they are not implemented in my version.
> (I have downloaded 2.7.2)

Those are not implemented per default. You need to use a custom AST with
them defined:

http://www.jguru.com/faq/view.jsp?EID=62654

Note that this does not catch all automatically generated AST's e.g. some
you still have to patch up manually.

Cheers,

Ric
-- 
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
     "Never argue with an idiot, for they will bring you down to their
              level and beat you with experience." --- Unknown



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list