[antlr-interest] Can somebody give me the very simplest example of grammar to AST to StringTemplate output

Terence Parr parrt at cs.usfca.edu
Fri Oct 23 08:52:31 PDT 2009


have you looked at the (free) code for both books?
Ter
On Oct 23, 2009, at 6:10 AM, Naveen Chawla wrote:

> I'd like to use all the features of ANTLR all the way up to  
> StringTemplate etc. for e.g. a translation, can someone give me the  
> very simplest example they possibly can, for a beginner, of a  
> grammar, to an AST (very, very simple) to using StringTemplate and  
> then a translated output (with maybe a "Tree grammar" somewhere in  
> between?)?
>
> The reason why I want a bare-bones example is so that I can apply it  
> to what I do, and the book seems to have 3-4 chapters for the whole  
> workflow, and I can't seem to find the basic elements I need for a  
> simple working example for all the features.
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list