Section 9.6 of ANTLR definitive reference (Building a Java Bytecode
Generator Using a Tree Grammar and Templates) does this. 

 

The free code samples are available at
http://media.pragprog.com/titles/tpantlr/code/tpantlr-code.tgz

 

Samples for this specific section is available at 'Code/templates/generator'
inside the archive.

 

The book has a very good explanation too.

 

Cheers, Indhu

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Naveen Chawla
Sent: Saturday, October 24, 2009 9:11 AM
To: Terence Parr
Cc: ANTLR Interest Mailing List
Subject: Re: [antlr-interest] Can somebody give me the very simplest example
of grammar to AST to StringTemplate output

 

No, where?
Many thanks, N

2009/10/23 Terence Parr <[email protected]>

have you looked at the (free) code for both books?
Ter


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to