[stringtemplate-interest] tow questions
Terence Parr
parrt at cs.usfca.edu
Mon Aug 25 13:39:19 PDT 2008
STIs dynamically scoped, meaning embedded templates can see the
attributes of their enclosing instance. The separator notation is
correct that you're using. use "," not "\r\n".
Ter
On Aug 24, 2008, at 10:41 PM, gaochunguang wrote:
> about following template:
>
> SELECT(tableName, Fields, ic) ::= <<
>
> <iBB(ic)> CREATE TABLE <tableName> { <iE(ic)>
> <Fields:{f | <FieldP(f)>}; separator="\r\n">
> <iB(ic)> } <iE(ic)>
> >>
>
> FieldP(f) ::= <<
> <iB(ic)> <f.Name> <f.mType> <if(f.isNull)> NULL <else> NOT NULL
> <endif> <iE(ic)>
> >>
>
> tow questions:
> First, why ic can work in FieldP?
> Second, how to set separator "," between FieldP()?
>
> thank you very much!
More information about the stringtemplate-interest
mailing list