[stringtemplate-interest] [ST4] Warning when no variables declared in anonymous template
Matthieu Wipliez
mwipliez at yahoo.fr
Tue Feb 1 10:02:34 PST 2011
Hi,
the following
<values: {something}; separator="\n">
causes the following error:
"anonymous template has 0 arg(s) but mapped across 1 value(s)"
I think this error is a bit strange, because I don't need to declare a variable
in this case, and I believe this is allowed by the grammar.
Declaring a variable in the template solves the problem, but I find it strange
to declare a variable I know I won't need:
<values: {unused | something}; separator="\n">
Cheers
Matthieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110201/daae87ca/attachment-0001.html
More information about the stringtemplate-interest
mailing list