[antlr-interest] newline in Antlr3
Terence Parr
parrt at cs.usfca.edu
Thu Aug 31 17:27:24 PDT 2006
On Aug 31, 2006, at 3:16 PM, Terence Parr wrote:
>
> On Aug 31, 2006, at 3:08 PM, Ilia Kantor wrote:
>
>>
>> Hmmm indeed.. I just want ANY rule to read all nested brackets, like
>> { ..{..}. }
>>
>> How you'd recommend to implement it ?
>
> HI.
>
> "Use the stack, Luke"
>
> BLOCK : '{' (BLOCK | ~'{')* '}' ;
ooops!
BLOCK : '{' (BLOCK | ~('{'|'}'))* '}' ;
Ter
More information about the antlr-interest
mailing list