[antlr-interest] Re: Code generation for Java-to-Java

atripp54321 atripp at comcast.net
Tue Oct 12 07:49:49 PDT 2004



--- In antlr-interest at yahoogroups.com, "olafschwarz78"
<olafschwarz78 at y...> wrote:
> 
> 
> Hi!
> I have to develop a Java-to-Java Compiler which will make some 
> modifications to the generated AST.
> 
> Does anybody know a tree walker generating Java code from the ASTs 
> Micheal Studman's java15.g creates? A similar grammar would of 
> course also be OK.
> 
> Unfortunately the topic of code creation is very rarely covered in 
> the documentation material I found. So I am quite unsure about the 
> best way to build such a code generator by myself. If this is really 
> necessary I would be glad if you could point me to a good source to 
> read up on this.
> 
> Thank you in advance
> Olaf

If you prefer to just traverse the AST on your own and skip the
ANTLR tree-walking capability, just start with the
JavaEmitter code:
http://jazillian.com/antlr/emitter.html
and keep enhancing that until you're done.

Andy





 
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