|how to handle precedence? firstname.lastname@example.org (Cristian Almstrand) (1997-05-04)|
|From:||Cristian Almstrand <email@example.com>|
|Date:||4 May 1997 22:06:14 -0400|
|Organization:||University Collegege of =?iso-8859-1?Q?Bor=E5s?=|
I have developed a LALR parser but would like to make it possible to
use precedence operators like the one yacc uses ("%left", "%right",
"%token"). My only source of infomation concerning this have been the
dragon book but I havn't found anything on how theese operators would
affect the shift/reducen actions. Can someone help me with this?
I'm sure this is a trivial problem but since I am pretty new in the
area of Compiler-design (examination project) I would be most obliged
if you could help. Also, the time is running out and I only have 1
week to work this out so please do not refer to any litterature if
possible since I might not be able to get the books in time.
Return to the
Search the comp.compilers archives again.