[antlr-interest] getting error while generating the grammar
David Holroyd
dave at badgers-in-foil.co.uk
Fri Nov 17 09:33:20 PST 2006
On Fri, Nov 17, 2006 at 10:29:35PM +0530, Vipin Gupta wrote:
> I am getting the error while generating the grammar the following code in
> ANTLR 3. can any one help me to correct this syntax.
>
> expr : s1=mexpr ((PLUS|MINUS) s2=mexpr)* -> $s1 (PLUS?
> MINUS? $s2)*
> ;
It's an unimplemented feature. The workaround is to label PLUS and
MINUS, and refer to that label on the right hand side.
See,
http://www.antlr.org/pipermail/antlr-interest/2006-August/017343.html
ta,
dave
--
http://david.holroyd.me.uk/
More information about the antlr-interest
mailing list