So far as I understand it, the precedence is supposed to be determined by the 
right-most terminal.   I'll have to look at this code to wrap my brain around 
what's happening in PLY 
however.

Cheers,
Dave

On Fri 26/09/08  7:28 PM , dangyogi [EMAIL PROTECTED] sent:
> 
> 
> I'm running ply 2.5 and find a discrepancy between the implementation
> 
> and the documentation.
> 
> 
> 
> The documentation states that the precedence for the rule is taken
> 
> from the right-most TERMINAL.
> 
> 
> 
> But the code takes the precedence from the left-most TERMINAL.  (see
> 
> 'if' statement on line 1346 of yacc.py).
> 
> 
> 
> If it matters, bison takes the precedence for the rule from the right-
> 
> most TERMINAL, suggesting that the documentation is correct and the
> 
> code is wrong?
> 
> 
> 
> Please advise on what you think the correct answer is.
> 
> 
> 
> Thanks in advance!
> 
> 
> 
> -bruce
> 
> > 
> 
> 
> 
> 
> 




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ply-hack" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/ply-hack?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to