[antlr-interest] newline in Antlr3

Terence Parr parrt at cs.usfca.edu
Thu Aug 31 15:16:59 PDT 2006


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 | ~'{')* '}' ;

Ter



More information about the antlr-interest mailing list