[stringtemplate-interest] misc
Brian Lewis
bsl04 at uark.edu
Mon Mar 26 04:24:16 PDT 2007
group test;
null ::= ["x":, default:]
test() ::= <<
$
["field1", "field2", "field3", "field4", "field5", "field6"],
["label1", "label2", "label3", "label4", "label5", "label6"],
["" , "" , null.x , null.x , null.x , "" ],
["40" , "40" , "40" , "40" , null.x , "40" ] :
{name, label, required, size|
$name$, $label$, $required:{};null="null"$, $size:{};null="null"$
}
$
>>
1. What is the correct way to put null in a list?
2. The expected output was
field1, label1, , 40
field2, label2, , 40
field3, label3, null, 40
field4, label4, null, 40
field5, label5, null, null
field6, label6, , 40
but the actual output was
field1, label1, ,
field2, label2, ,
field3, label3, ,
field4, label4, null,
field5, label5, null,
field6, label6, null, null
Why?
3. I tried to iterate over a list of maps to save myself some repetitive
coding, but it seems as though you can't have a list of maps. Is that
correct?
More information about the stringtemplate-interest
mailing list