Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!hpda!hpisod1!hpcllla!hpclisp!hpclmao!mao From: mao@hpclmao.HP.COM (Mike Ogush) Newsgroups: comp.lang.c Subject: Harbison/Steele C grammar bugs Message-ID: <660002@hpclmao.HP.COM> Date: Fri, 30-Oct-87 15:17:18 EST Article-I.D.: hpclmao.660002 Posted: Fri Oct 30 15:17:18 1987 Date-Received: Thu, 5-Nov-87 06:17:51 EST Organization: HP ITG/ISO Computer Language Lab Lines: 53 The grammar for C (including Draft ANSI features) in appendix B of the 2nd edition the book _C: A Refrence Manual_ by Harbison and Steele seems to have a number of bugs in it: p. 380 = appears twice in the production(s) for assignment-op p. 382 The production for conditional-statement appears twice The right-side of the production for const-type-specifier should be in the font that indicates a reserved word not the font for non-terminal symbols. p. 383 There is a missing production: declarator-list: declarator declarator , declarator The symbol 'name' in the production for direct-component-selection should be 'identifier' There is a spurious line: enumeration-constant = expression p. 384 There is only one right-side in the production for enumeration-type-definition, which is the concatenation of the two given in the book. p. 386 The symbol 'name' in the production for indirect-component-selection should be 'identifier' p .389 The symbol 'name' in the production for primary should be 'identifier' p. 392 The right-side of the production for volatile-type-specifier should be in the font that indicates a reserved word not the font for non-terminal symbols. Are there any bugs that I have missed? Are there better ways to fix the problems that what I suggested above? Mike Ogush Computer Languages Lab Hewlett-Packard Company ...!hplabs!hpclla!mao