[stringtemplate-interest] A plan/idea - seeking thoughts and so forth
Sam Barnett-Cormack
s.barnett-cormack at lancaster.ac.uk
Sun Jun 19 15:33:51 PDT 2011
On 19/06/2011 23:08, Barrie Treloar wrote:
> On Mon, Jun 20, 2011 at 7:25 AM, Sam Barnett-Cormack
> <s.barnett-cormack at lancaster.ac.uk> wrote:
>> On 17/06/2011 02:26, Terence Parr wrote:
>>>
>>> I know a guy that pulls all templates from a DB (using v3 but still should
>>> work). Make STGroupDB or whatever.
>>
>> So, if you're using a customised STGroup subclass, and a template in it
>> refers to another template by name, that name is looked up in the same
>> group, yes? What characters are valid in a template name? I assume word
>> characters, and judging by anther post forward-slash is also permitted -
>> what about any other 'symbol' characters? I can see some marvellous
>> potential to make the specific-template-picking system be built directly
>> into a custom STGroup subclass, and that would be great if there's some
>> character I could use as a wildcard, but then the wildcard could be in the
>> template definitions rather than
>
> Did you look at the ST 4 documentation?
>
> http://www.antlr.org/wiki/display/ST4/Group+file+syntax
>
> Its just
> 'import' STRING
>
> So it an be anything.
See, if it's a custom STGroup subclass, it might not use a group
subclass. What's important syntactically for what I'm talking about is
the question of what is a valid template when it's used within a
template, rather than in an import statement in a group file.
Sam
More information about the stringtemplate-interest
mailing list