[stringtemplate-interest] string template inconsstent behaviour c# port
Terence Parr
parrt at cs.usfca.edu
Fri Oct 17 11:50:41 PDT 2008
can you reduce to a simpler version that has same problem?
Ter
On Oct 13, 2008, at 1:18 PM, Sunil Chandrasekharan wrote:
> Hi All,
>
> following string template drops out parameter as they gets excuted
> ........
>
> <type_id_usg_list:{e|
>
> <
> DataCheckExistsOk
> (table
> =
> "USAGE_TYPES
> ",columnList
> =["type_id_usg","units_indicator"],valueList=[{'<e>'},"1"])>}>
>
> ..............
>
> DataCheckExistsOk(table,columnList,valueList)
>
> ::=
>
> <<
>
> select 1
> from <table>
> where
> <columnList,valueList:{c,v|<c>=<v>};separator=" AND ">
>
> ;
>
> EXCEPTION
> WHEN
> NO_DATA_FOUND
> THEN begin dbms_output.put_line(' Data Not Found:Table:'||'<table>'
> || 'KEY='||
> <columnList,valueList:{c,v| '<c>'||<v>};separator=" || ">
> );is_rollback:=true; end;
>
> >>
>
> -------------------------------
>
> produces out put
>
>
> select 1
> from USAGE_TYPES
> where
> type_id_usg='333' AND units_indicator=1
> ;
>
> EXCEPTION
> WHEN
> NO_DATA_FOUND
> THEN begin dbms_output.put_line(' Data Not
> Found:Table:'||'USAGE_TYPES' || 'KEY='||
> );is_rollback:=true; end;
> ----------------------
>
> As you can see as evalution progress some how parameter list
> becomes empty[high lighted text]. in the same template scope
> If you can please add me as user on stringtemplate group as I am
> using externsively and finds string template very useful.
>
> I do not have same issue with single value in parameter list . I use
> the c# port
>
> ie;
>
> <jurisdiction_list:{e|
> <
> DataCheckExistsOk
> (table
> ="JURISDICTIONS",columnList={<["jurisdiction"]>},valueList={<e>})>}>
>
> produces corect o/p
>
> Thansk for your time
>
> regards
>
> Sunil
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list