[antlr-interest] Matching nested actions

Terence Parr parrt at cs.usfca.edu
Thu Jun 22 08:28:52 PDT 2006


On Jun 22, 2006, at 12:32 AM, Emond Papegaaij wrote:
> protected NESTED_ACTION
>     :   '{' ( NESTED_ACTION | ~('}'|'{') )* '}'
>     ;

try "fragment"  not "protected" :)  It thinks there are two identical  
tokens.

Ter



More information about the antlr-interest mailing list