Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: Ambiguity in C Message-ID: <7211@utzoo.UUCP> Date: Thu, 9-Oct-86 16:58:21 EDT Article-I.D.: utzoo.7211 Posted: Thu Oct 9 16:58:21 1986 Date-Received: Thu, 9-Oct-86 16:58:21 EDT References: <3773@ism780c.UUCP> Organization: U of Toronto Zoology Lines: 12 > ... So, how do we make the grammar for c unambiguous? One way > is to write the grammar in a formal language and subject it to analysis by a > grammar analysis program. I wonder if the standards committee has done this > for their proposed new language (still called c). The grammar in the X3J11 drafts is a bit more formal than the one in K&R, and has been very carefully munged so that the "sizeof(int)-1" ambiguity is gone. (Personally I never considered this a serious problem, but it's pleasant that they solved it.) -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,decvax,pyramid}!utzoo!henry