[antlr-interest] Rewriting with nodes from sub-rules?

Foust javafoust at gmail.com
Sat Aug 2 21:22:28 PDT 2008


> From: Gavin Lambert [mailto:antlr at mirality.co.nz]
> Subject: Re: [antlr-interest] Rewriting with nodes from sub-rules?
> 
> At 11:38 31/07/2008, Foust wrote:
>  >	... -> ^(SET[nameValue.name] ...)
> 
> Have you tried this:
> 
>    -> ^(SET[$nameValue.name] ...)

No, I didn't realize that the $ was required outside of code blocks. Thank
you for the suggestion.

It seems that the first way is working now, so I'm not sure what was happing
before. But I'll try it both ways next time there is a problem.

Thanks again,

B



More information about the antlr-interest mailing list