🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9526

Re: Ambiguity in C

#9526
From: Henry Spencer
Date: Thu, 09 Oct 1986 20:58
12 lines
1106 bytes
> ... 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
Technical Details
Message-ID: <7211@utzoo.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!henry
References: <3773@ism780c.UUCP>

Show Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!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