[stringtemplate-interest] ST4 inheritance without a group header?

Terence Parr parrt at cs.usfca.edu
Sun Feb 21 08:42:07 PST 2010


On Feb 20, 2010, at 6:00 PM, Gerald Rosenberg wrote:

> On 2/20/2010 4:40 PM, Terence Parr wrote:
>> hiya.  no need for "group ...;" An STG file is literally a concat  
>> of multiple templates, just like a dir.
>>
> Obviously.
>> So, we use dynamic inheritance.  I believe there is a set super  
>> method on STG.
>>
> None that I can find.
>>

crap. i'm pretty sure i have unit tests...anything obvious in there?  
oh sorry! found it:

     /** Make this group import templates/dictionaries from g. */
     public void importTemplates(STGroup g) {}

I renamed it to import rather inheritance; easier concept.

Ter


More information about the stringtemplate-interest mailing list