[antlr-interest] Matching nested actions
Terence Parr
parrt at cs.usfca.edu
Fri Jun 23 11:10:21 PDT 2006
On Jun 23, 2006, at 12:13 AM, Emond Papegaaij wrote:
> 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'?
protected is technically meaningless ;)
Ter
More information about the antlr-interest
mailing list