On Monday, July 28, 2003, at 11:26 AM, Orton, Yves wrote:

what seems to me as wrong is that i may have not only :

'(' expression ')'

but also just :

expression

but then it becomes left-recursive..

brackExpr : expression | '(' expression ')' | comparison

Use the <leftop> or <rightop> directives and youll be fine.


<leftop> and <rightop> are for left- and right-associative infix operators, so I don't see how they'll affect left recursion one way or another.

/s

Reply via email to