Small bug in Yacc grammar for ANSI C posted to net.sources
Arnold Robbins
arnold at gatech.CSNET
Thu May 16 02:01:35 AEST 1985
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 at gatech ARPA: arnold%gatech.csnet at 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?
More information about the Comp.lang.c
mailing list