[antlr-interest] How to generate code from AST.

Terence Parr parrt at cs.usfca.edu
Sun Oct 15 22:09:19 PDT 2006


Hi Davood.  Have you looked at my articles like:

http://www.codegeneration.net/tiki-read_article.php?articleId=77

That gives some idea of how ANTLR v3 works with so many different  
targets.  Just one code generator, multiple template backends.  works  
great. :)

Ter
On Oct 15, 2006, at 4:05 PM, davood khoshfetrat wrote:

> Hi every body.
>
> I've created my grammer and it works perfectly. Now I have AST. My
> problem is that I have to generate code to 3 different languages and
> they are complex. Meaning iterating throgh the AST won't cut it. I'm
> looking for some kind of algorithm or framework. some thing flexible.
> If you have any clue please guide me.
>
> Looking forward to hear from you.
> Thanks.



More information about the antlr-interest mailing list