[stringtemplate-interest] A plan/idea - seeking thoughts and so forth
Barrie Treloar
baerrach at gmail.com
Sun Jun 19 15:08:05 PDT 2011
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.
More information about the stringtemplate-interest
mailing list