[stringtemplate-interest] some templates do, some don't

Terence Parr parrt at cs.usfca.edu
Mon Aug 13 16:28:18 PDT 2007


On Aug 13, 2007, at 9:49 AM, krriggs at comcast.net wrote:

> Probably a newbie error!
>
> Re-wrote an HL proof to java code gnerator using rewrite and  
> tokenStream and added some extensions.
> Problem is this: some templates are invoked and others are not.
> I assume rewrites are 'in' the token stream and evaluated during  
> 'toString'
> Am I overloking something basic?

Can you be more specific?  Which templates?  Probably rule is not  
matched so no template eval.  Remember you must track and use ST's  
returned from rules or the value evaporates.

Ter



More information about the stringtemplate-interest mailing list