[antlr-interest] About Template Call (String Template)
Austin Hastings
Austin_Hastings at Yahoo.com
Sat Aug 9 09:48:47 PDT 2008
You have escaped your quotes in the second instance, but they don't need
to be escaped because the template is surrounded by << and >> instead of ".
The result is that your call to <type()> gets a long argument called
name=\"gao\" instead of an argument called name with a value of "gao".
Get rid of the backslashes in \"gao\" and try again.
=Austin
gaochunguang wrote:
> String Template3.1 for .net
>
> when my group file is :
> parser(name) ::= "<type(name=\"gao\")>";
> type(name) ::= "type <name>"
>
> output is
> type gao.
>
> but if my group file is :
>
> parser(name) ::= <<
> <type(name=\"gao\")>";
>
> type(name) ::= "type <name>"
> output is nothing. why multi line template cannot work?
>
>
>
More information about the antlr-interest
mailing list