Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!sri-spam!rutgers!iuvax!pur-ee!uiucdcs!uiucdcsb!kenny From: kenny@uiucdcsb.cs.uiuc.edu Newsgroups: comp.lang.c Subject: Re: Harbison/Steele C grammar bugs Message-ID: <165600021@uiucdcsb> Date: Mon, 2-Nov-87 14:56:00 EST Article-I.D.: uiucdcsb.165600021 Posted: Mon Nov 2 14:56:00 1987 Date-Received: Sat, 7-Nov-87 04:52:57 EST References: <660002@hpclmao.HP.COM> Lines: 36 Nf-ID: #R:hpclmao.HP.COM:660002:uiucdcsb:165600021:000:1200 Nf-From: uiucdcsb.cs.uiuc.edu!kenny Nov 2 13:56:00 1987 /* Written 2:17 pm Oct 30, 1987 by mao@hpclmao.HP.COM in uiucdcsb:comp.lang.c */ > p. 380 = appears twice in the production(s) for assignment-op And |= doesn't appear at all. I suspect that |= was intended for the second appearance of =. > p. 383 > The symbol 'name' in the production for > direct-component-selection should be 'identifier' No, it should be `component-name' and there should then be a production: component-name: identifier , to document the semantic restriction. > 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' The same comments about documenting the semantic restriction. You need the restriction, otherwise the declarations involving named types are impossible to handle. Thanks to Mike for pointing out these bugs. Kevin Kenny UUCP: {ihnp4,pur-ee,convex}!uiucdcs!kenny Department of Computer Science ARPA: kenny@B.CS.UIUC.EDU (kenny@UIUC.ARPA) University of Illinois CSNET: kenny@UIUC.CSNET 1304 W. Springfield Ave. Urbana, Illinois, 61801 Voice: (217) 333-8740