[stringtemplate-interest] Newbie Some issues
Kenny Cockburn
kenny.cockburn at ntlworld.com
Wed May 31 15:34:06 PDT 2006
Hi,
I have issue with calling Templates
I am using the c# version 2.3b7 of string Templates : I have not tried
this in the Java version;
The following code segment raises the exception 'antlr.NoViableAltException'
string tmplt = @"
group DescDataSet ;
DescTable(tab) ::= <<
Hello There
>>
DescDataSet( ds ) ::= <<$ds.Tables:DescTable(tab=it)$>>
";
StringTemplateGroup stg = new StringTemplateGroup(new
StringReader(tmplt), typeof(DefaultTemplateLexer));
------------------------------
if I change the template call from :DescTable(tab=it) to :DescTable(it)
I do not get any exception is this expected behaviour ?
string tmplt = @"
group DescDataSet ;
DescTable(tab) ::= <<
Hello There
>>
DescDataSet( ds ) ::= <<$ds.Tables:DescTable(it)$>>
";
StringTemplateGroup stg = new StringTemplateGroup(new
StringReader(tmplt), typeof(DefaultTemplateLexer));
---------------------------------------------
More information about the stringtemplate-interest
mailing list