Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Unnecessary parenthesis Message-ID: <1988Jul10.201845.27751@utzoo.uucp> Organization: U of Toronto Zoology References: <326@marob.MASA.COM>, <175@lakart.UUCP> Date: Sun, 10 Jul 88 20:18:45 GMT > ... this is a weakness of RD parsers: the amount of > work incurred by unnecessary parentheses is quite considerable, especially > in a language such as C, with 15 levels of operator precedence.... Well, yes, *if* you implement the RD parser straight from the grammar and do no optimization. One can do better, at the price of greater complexity, by explicitly looking for the simple cases. -- Anyone who buys Wisconsin cheese is | Henry Spencer @ U of Toronto Zoology a traitor to mankind. --Pournelle | {ihnp4,decvax,uunet!mnetor}!utzoo!henry