Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site drivax.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!hao!hplabs!amdahl!drivax!alan From: alan@drivax.UUCP (Alan Fargusson) Newsgroups: net.lang.c Subject: Re: ANSII C structures and unions Message-ID: <128@drivax.UUCP> Date: Thu, 25-Apr-85 00:18:18 EDT Article-I.D.: drivax.128 Posted: Thu Apr 25 00:18:18 1985 Date-Received: Sun, 28-Apr-85 07:20:06 EDT Distribution: net Organization: Digital Research, Monterey, CA Lines: 24 I blew it. The grammar that was posted to the net has a bug which I fixed as shown below. When I read the grammar in the standard I missed the fact that the tag is optional. Everything is okay. Before fix: struct_or_union_specifier : struct_or_union identifier '{' struct_declaration_list '}' | struct_or_union identifier ; After fix: struct_or_union_specifier : struct_or_union identifier '{' struct_declaration_list '}' | struct_or_union '{' struct_declaration_list '}' | struct_or_union identifier ; -- Alan Fargusson. { ihnp4, sftig, amdahl, ucscc, ucbvax!unisoft }!drivax!alan