[antlr-interest] antlr v4 wish list
Jim Idle
jimi at temporal-wave.com
Wed Mar 23 08:13:04 PDT 2011
Gary,
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Gary Miller
> - The ability to have actions on the right side of an ast re-write
> operator.
r: ( alt -> ^(X alt) ) {action} ;
> - A different rule @init that only executes during when not
> backtracking.
>
> - The ability to detect / work with an empty scope.
> Currently attempts to access an empty scope throws a stack exception
> (in Java)
That's deliberate as it means you have your scope in the wrong place.
Getting to an empty scope is a bug in your grammar and you need it to
abort straight away so that you know how you got there.
Jim
More information about the antlr-interest
mailing list