[antlr-interest] Matching nested actions
Emond Papegaaij
e.papegaaij at student.utwente.nl
Fri Jun 23 00:13:26 PDT 2006
On Thursday 22 June 2006 17:28, Terence Parr wrote:
> 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.
Ah, that helped. What is the exact difference between 'fragment'
and 'protected'?
Best regards
Emond Papegaaij
More information about the antlr-interest
mailing list