[stringtemplate-interest] [ST4] Specifying delimiter in group files
Udo Borkowski
ub at abego-software.de
Fri Jan 28 01:24:12 PST 2011
> templates/
> .stconfig # says use <...>
> method.st
> class.st
> field.st
> subdir/
> .stconfig # says use `...` inside
> foo.st
> misc.stg # says use $...$ inside
>
> hmm....should be consistent, right?
I don't see an inconsistency here.
I think of "misc.stg" as a "sub group" in "templates/". So if it is OK for "subdir/" to use different delimiter than "templates/" it is also OK for "misc.stg" to use different ones, too.
In my understanding the above situation is equivalent to this one:
templates/
.stconfig # says use <...>
method.st
class.st
field.st
subdir/
.stconfig # says use `...` inside
foo.st
misc/
.stconfig # says use $…$ inside
t1.st # first template of misc.stg
t2.st # second template of misc.stg
...
tn.st # last template of misc.stg
In both situations you would use "misc/t1.st" to refer to the first template of the group "misc" (in the Group dir "templates").
Udo
On 28.01.2011, at 01:14, Terence Parr wrote:
>
> On Jan 27, 2011, at 3:28 PM, Collin Fagan wrote:
>
>> Damn ... i can't think of anything bad. It's seems reasonable to me.
>
> crap! i just thought of something:
>
> group dirs can have group files so they could mix. imagine
>
> templates/
> .stconfig # says use <...>
> method.st
> class.st
> field.st
> subdir/
> .stconfig # says use `...` inside
> foo.st
> misc.stg # says use $...$ inside
>
> hmm....should be consistent, right?
>
> Ter
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110128/aa810faa/attachment.html
More information about the stringtemplate-interest
mailing list