Small bug in ANSI C Yacc grammar

sources-request at genrad.UUCP sources-request at genrad.UUCP
Thu May 16 04:36:37 AEST 1985


From: Arnold Robbins <gatech!arnold>

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
  	;
  



More information about the Mod.sources mailing list