It works, thanks!

András


Jared Bunting <[EMAIL PROTECTED]> írta: 


> assignment : leftValue DEFINES rightValue -> 
> template(left={$leftValue.text}, right={$rightValue.text}) "content of 
> template here";
> 
> should work...  (the use of "template" instead of the template name is 
> key...)
> 
> -Jared
> 
> Imre András wrote:
> > Hi,
> >
> > I'm checking out the templating output feature of Antlr. I started 
> > with CMinus.g grammar found in examples-v3.tar.gz. Based on this 
> > grammar I created another one, which call templates defined in an 
> > external stg file. For example my assignment rule is:
> >
> > assignment : leftValue DEFINES rightValue -> 
> > assignment(left={$leftValue.text}, right={$rightValue.text});
> >
> > As my grammar is quite simple, I'd like to get rid of the external 
> > file. Is there a way I can do all the templating inline?
> >
> >
> > Thanks,
> >   András
> > ------------------------------------------------------------------------
> >
> >
> > List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
> > Unsubscribe: 
> > http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
> >
> >   
> 
--~--~---------~--~----~------------~-------~--~----~
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:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to