[antlr-interest] newline in Antlr3
Kay Roepke
kroepke at classdump.org
Thu Aug 31 15:13:04 PDT 2006
On 1. Sep 2006, at 0:08 Uhr, Ilia Kantor wrote:
> How you'd recommend to implement it ?
Oh, I'm sorry, I should've actually said that, too ;)
try this:
ANY: {bracketLevel>0}?=> (
(options { greedy=false; } :
~('{' | '}') |
'{' { bracketLevel++; } |
'}' { bracketLevel--; }
)+
)
;
cheers,
-k
--
Kay Röpke <kroepke at classdump.org>
classdump Software
Key fingerprint = A849 0F2C C322 4022 379E 8661 7E1B FE0D 4CD2 A6D0
More information about the antlr-interest
mailing list