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

Gavin Lambert antlr at mirality.co.nz
Sat Aug 2 21:30:56 PDT 2008


At 16:22 3/08/2008, Foust wrote:
 >> 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.

Square brackets are *also* code blocks, just used differently 
:)  (They usually turn into parameters or structure members.  But 
either way they represent target language code.)



More information about the antlr-interest mailing list