[antlr-interest] 3.0 C++ wishlist

Paul Johnson gt54-antlr at cyconix.com
Tue Jul 26 01:06:20 PDT 2005

Can we please have virtual getParent and addSibling routines in 3.0? 
This will save lots of typecasting:

virtual RefAST getParent() const;
virtual void addSibling(RefAST);

'setParent' might be nice as well, but may be unnecessary, since you can 
implement it by over-riding 'addChild'/etc.

Some AST iterator functionality would be nice, but may take some 
thinking about.

are there any preprocessor macros that'll let us know what ANTLR version 
we've got?


More information about the antlr-interest mailing list