[net.lang.c] Small bug in Yacc grammar for ANSI C posted to net.sources

arnold@gatech.CSNET (Arnold Robbins) (05/15/85)

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?

arnold@gatech.CSNET (Arnold Robbins) (05/15/85)

> Subject: Small bug in Yacc grammar for ANSI C posted to net.sources

My subject line was wrong in the previous note. The grammar (and the fix)
were both posted to MOD.sources, not net.sources.  Sorry 'bout that, Chief.
-- 
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?