[stringtemplate-interest] A plan/idea - seeking thoughts and so forth
Sam Barnett-Cormack
s.barnett-cormack at lancaster.ac.uk
Sun Jun 19 14:55:52 PDT 2011
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 in the references in other
templates, possibly. Hmm.
Sam
>> On Fri, Jun 17, 2011 at 2:03 AM, Sam Barnett-Cormack
>> <s.barnett-cormack at lancaster.ac.uk> wrote:
>>> On a very specific note, though, as I work out some implementation
>>> details that I need to know (at least whether they are possible) before
>>> I go further - is it possible in ST4, to have a STGroup (created
>>> however) and add templates to it at run-time? I imagine I'll be wanting
>>> to dynamically construct a group based on configuration, using files in
>>> all sorts of places and possibly pulling things in from arbitrary data
>>> sources (DBs, remote filesystems, black boxes even). The API docs list
>>> functions that look like this might be possible, but the lack of any
>>
>> I've had a look around in STGroup, and I can't think of any reason why
>> you can't create your own that pull stuff from your list of places.
>>
>> But you wont know for sure until you code it.
>> _______________________________________________
>> stringtemplate-interest mailing list
>> stringtemplate-interest at antlr.org
>> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list