>
>
> The grammar is nearly complete now, and correct as far as I've tested
> it,
> but I'm left with a bunch of S/R and R/R conflicts (the above being
> only one
> of the sources of that).  Does that mean my grammar is horribly
> broken?
> The docs give the impression that conflicts are Bad and should always
> be
> fixed.

Reduce/reduce conflicts are almost always bad---they mean that certain  
rules in your grammar will never be triggered.  Since you probably put  
in the rules for a good reason, you'll need to look into it.

Shift/reduce conflicts tend to be less serious unless there are a huge  
number of them.   You'll find that PLY does the "right thing" with  
most of these--although you should still check into it just to be  
safe.  Also, make sure you understand the role of the precedence  
specifier.  Many shift-reduce conflicts can be fixed with precedence  
rules (i.e., if a shift-reduce conflict is being resolved in the  
opposite way that you would like, you can use a precedence rule to  
force the correct action to take place).

Cheers,
Dave


--~--~---------~--~----~------------~-------~--~----~
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