Relay-Version: version B 2.10.3 alpha 4/15/85; site seismo.UUCP Posting-Version: version B 2.10.2 9/3/84; site genrad.UUCP Path: seismo!harvard!talcott!panda!genrad!sources-request From: sources-request@genrad.UUCP Newsgroups: mod.sources Subject: Small bug in ANSI C Yacc grammar Message-ID: <839@genrad.UUCP> Date: 15 May 85 18:36:37 GMT Sender: john@genrad.UUCP Lines: 29 Approved: john@genrad.UUCP From: Arnold Robbins 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. 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 ;