[antlr-interest] Getting Column and Line in CPP AST's

Ric Klaren klaren at cs.utwente.nl
Thu Feb 12 00:26:11 PST 2004


On Thu, Feb 12, 2004 at 01:39:39AM -0000, jenlhunt2003 wrote:
> In CPP mode, is source column/line info available to the tree walker?  I'm using antlr to generate the AST's and I don't see any way to 
> access this information.
> 
> If this isn't supported or straight forward, is there any example code that describes how to do it in CPP?  I've seen a couple 
> of examples in Java, but they seem to call classes (like super) not available in CPP.

http://www.imada.sdu.dk/~morling/issue4.htm

The above needs some small tinkering probably for 2.7.2-3 check the custom
AST section in the docs for the extra's.

Ric
-- 
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
   Words fly like arrows
      as if we knew what was right and wrong. --- Chuang Tsu



 
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