[antlr-interest] About Template Call (String Template)

Terence Parr parrt at cs.usfca.edu
Sat Aug 9 08:35:55 PDT 2008


don't escape " unless you need to.  name="gao"
Ter
On Aug 9, 2008, at 8:32 AM, 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