[antlr-interest] Custom AST? How to write a compiler?

jenlhunt2003 steam at tapisinc.com
Mon Jan 5 11:48:43 PST 2004


Hi,
Are there any hidden issues that complicate using Custom AST's in C++
mode?

Is the "Custom AST Types" patch still required on newer releases (say
2.7.3 from Ric) of Antlr?

Okay, now the BIG question.  I trying to utilize Antlr to construct a
'C' compiler, the final output of which would be P code (for a stack
machine lets say).  Would Custom AST's derived from Antlr's be
suitable for this, or should I discard it all in favor of creating and
manipulating my own AST's?

I have read much of Ian's comments, and some past list comments on
this, but am still undecided.  Incidently, the compiler does not have
to be particularly fast or produce optimal code (has to be correct
though).  I just need to be able to complete it in the forseeable
future ;)

Thanks,

Henry




 

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