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!arnold From: arnold@gatech.CSNET (Arnold Robbins) Newsgroups: net.lang.c Subject: Small bug in Yacc grammar for ANSI C posted to net.sources Message-ID: <57@gatech.CSNET> Date: Wed, 15-May-85 12:01:35 EDT Article-I.D.: gatech.57 Posted: Wed May 15 12:01:35 1985 Date-Received: Thu, 16-May-85 05:22:07 EDT Distribution: net Organization: Pr1mebusters! Lines: 35 There was a small (but fatal) problem in the YACC grammar I posted. On line 201 of gram.y, change the : to a |. This was my own mistake, when I added a production that had been missing. Here is a context diff. (This diff has also gone to mod.sources.) Sorry about that, Arnold ---------------------------------------------------------------------- *** o.gram.y Wed May 15 11:41:33 1985 --- gram.y Wed May 15 11:41:42 1985 *************** *** 199,205 struct_or_union_specifier : struct_or_union identifier '{' struct_declaration_list '}' ! : struct_or_union '{' struct_declaration_list '}' | struct_or_union identifier ; --- 199,205 ----- struct_or_union_specifier : struct_or_union identifier '{' struct_declaration_list '}' ! | struct_or_union '{' struct_declaration_list '}' | struct_or_union identifier ; -- Arnold Robbins CSNET: arnold@gatech ARPA: arnold%gatech.csnet@csnet-relay.arpa UUCP: { akgua, allegra, hplabs, ihnp4, seismo, ut-sally }!gatech!arnold How come nobody likes good ideas when they don't come up with them?