Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site gatech.CSNET Path: utzoo!watmath!clyde!bonnie!akgua!gatech!jeff From: jeff@gatech.CSNET (Jeff Lee) Newsgroups: net.sources.bugs Subject: Re: L-values vs. Yacc and Lex for 11/12/84 draft of ANSI C Message-ID: <226@gatech.CSNET> Date: Tue, 4-Jun-85 16:52:58 EDT Article-I.D.: gatech.226 Posted: Tue Jun 4 16:52:58 1985 Date-Received: Thu, 6-Jun-85 07:56:44 EDT References: <831@genrad.UUCP> <558@cyb-eng.UUCP> Organization: School of ICS, Georgia Institute of Technology, Atlanta Lines: 27 > There is a deficiency in the Yacc/Lex grammar for the 11/12/84 draft of > ANSI C posted to mod.sources recently. It has to do with the concept of > l-values, namely: statements such as those shown below which are given > to the parser do not generate syntax errors, requiring semantic > interpretation to flag these errors. > > main() > { > char *foo; > > foo = "hello, world"++; > sizeof(int) = 3; > } > > Now I personally would not like to see increment/decrement operators > used legitimately on arbitrary r-values, as this would affect the > semantic meaning of those operators. The deficiency exists in the original grammar as put out by the ANSI committee, as well as the two put out since then (January and April 30, 1985). As soon as I see if an item is actually a bug in the grammar I'll post the April 30, 1985 grammar to the net. See mod.std.c for further information. Film at 11. -- Jeff Lee CSNet: Jeff @ GATech ARPA: Jeff%GATech.CSNet @ CSNet-Relay.ARPA uucp: ...!{akgua,allegra,hplabs,ihnp4,linus,seismo,ulysses}!gatech!jeff