Re: Re: help please?
Greg Ewing <[email protected]> Mon, 03 May 2004 16:54:34 +1200
| Newsgroups | gmane.comp.lang.prothon.devel |
|---|---|
| Message-ID | <[email protected]> |
Kenny MacDermid <[email protected]>: > 6: fix up other precedence list cases. Try to only give > precedence to things that need it. And only to ones that make > sense (that are in-between two things like '+'). Put all equal > precedences together like: > > %left '+' '-' > %left '<' LE '>' GE NE EQ Alternatively, don't use precedence rules at all, and write out a hierarchy of productions to express precedences. Explicit is better than implicit. :-) Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | [email protected] +--------------------------------------+