[antlr-interest] Are embedded actions are allowed in StringTemplate? (+)
Terence Parr
parrt at cs.usfca.edu
Mon Dec 21 09:39:18 PST 2009
They are retargetable for specifically that reason. Sounds like you
should check out my papers on separability and my talks on
retargetability. Note that ANTLR has one code generator and multiple
template groups to handle the multiple targets. proof one might say.
Ter
On Dec 20, 2009, at 11:17 PM, Дмитрий Волосных wrote:
> Yes, but in this case the translation logic intended by the target-
> language won't be enclosed in a stg-file, what contradicts with
> claimed idea of retargetable code generators.
>
> 21 декабря 2009 г. 4:41 пользователь Terence Parr
> <parrt at cs.usfca.edu> написал:
> <if(v)>...<endif> but v must be computed in model and pushed into
> templates.
> Ter
>
> On Dec 20, 2009b, at 1:41 PM, Дмитрий Волосных wrote:
>
> Especially, I am intereseted in altering genereted text depending on
> the value of some parameter of the template.
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091221/3b13e16d/attachment.html
More information about the antlr-interest
mailing list