[antlr-interest] How to define multi and div?
=?GB2312?B?0MLC8g==?=
inshua at gmail.com
Sat Dec 10 07:33:26 PST 2005
I'm studing the expression parsing.
here I define the multi expr and div expr.
multiExpr
: (parenExpr | divExpr) (MULTI^ parenExpr)+
;
divExpr
: (parenExpr | multiExpr) (DIV^ parenExpr)+
;
this define raised recurse error. thoe in fact, the left of multi expr can
be div expr.and each other.
can you give me some suggest ?
thanks~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20051210/9cb865c8/attachment.html
More information about the antlr-interest
mailing list