Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!ut-sally!seismo!mcvax!boring!steven From: steven@boring.uucp (Steven Pemberton) Newsgroups: net.lang.c,net.lang Subject: Re: LALR grammars for C and C++ Message-ID: <6759@boring.UUCP> Date: Mon, 3-Feb-86 13:04:40 EST Article-I.D.: boring.6759 Posted: Mon Feb 3 13:04:40 1986 Date-Received: Wed, 5-Feb-86 01:45:44 EST References: <294@isis.UUCP> Reply-To: steven@mcvax.UUCP (Steven Pemberton) Distribution: net Organization: CWI, Amsterdam Lines: 31 Xref: watmath net.lang.c:7758 net.lang:2077 Apparently-To: rnews@mcvax In article <294@isis.UUCP> dmiruke@isis.UUCP asks: > Sometime back someone posted a question about an error in the LALR grammar > given in the book 'C - A Reference Manual' by Harbison and Steele, in which > there are two productions present that don't seem to be used anywhere at all > in the rest of the grammar. I do not know if any solution or improvement was > suggested by someone about this. If someone has any idea would like to hear > about it. In May 1985, Don Taylor posted the following corrections: | There are a handful of typo's in the lalr(1) grammar in appendix c [of H&S]. | A letter to them resulted in a prompt reply from Mr. Harbison, and I quote | ------------ | | -Change all occurences of "..._ctype>" to "..._type>". | | -Remove definitions of "<008>" and ""; they are not needed. | | -"" should be "". | | In addition, if you have the first printing of the book, the production | | ::= ( ) | should be | ::= ( ) | | You should also know that this grammar does not accomodate C's "old" form of | initializers and compound assignments. | ------------ Steven Pemberton, CWI, Amsterdam; steven@mcvax.uucp