[antlr-interest] Can't create AST Node?

Monty Zukowski monty at codetransform.com
Thu Jul 8 09:31:08 PDT 2004


On Jul 8, 2004, at 7:54 AM, Tiller, Michael ((M.M.)) wrote:

> Actually, I've reached the end of the rope with heterogenous AST types
> in ANTLR.  It was such a pain to do this in C++ and I see a whole new
> horizon of problems on the Java side.  I'm just going to bite the 
> bullet
> and turn "buildAST" off and make the tree myself.  It is just too much
> trouble (for me) to deal with all the inheritance and casting issues.
> The downside is that this tosses tree parsing right out the window but 
> I
> haven't really used the tree parser stuff anyway so I'm not losing much
> there.

Not sure if you answered this before, but why do you want to use 
heterogenous trees?  The main reason I've seen is for people who want 
to access the node objects directly from C++ instead of through a tree 
grammar.  I've only recently tried to use them with C++ on a contract 
and I agree that antlr's tree building scheme is not easy to 
comprehend.

The more diverse uses we collect the better off we are in the future.  
You're the one who wrote up a whole bunch of notes on tree building 
already, right?  It really helps.

Monty



 
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