Re: expressions ?! how ?

[email protected] ("Sean O'Rourke") Mon, 28 Jul 2003 15:48:49 -0700
Newsgroups perl.recdescent
Message-ID <[email protected]>
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