RE: expressions ?! how ?

[email protected] ("Orton, Yves") Mon, 28 Jul 2003 19:26:31 +0100
Newsgroups perl.recdescent
Message-ID <71B318898201D311845C0008C75DAD1C08960EAC@defra1ex2>
> 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.

Yves