LALR(1) Grammer for C

Unilogic unilog at g.cs.cmu.edu
Fri Oct 25 06:42:54 AEST 1985


I can't remember where I saw them, but I have a bunch of corrections to the
grammar in Harbison and Steele.

	1. page 336: change occurrances of <struct_ctype> and <union_ctype>
		     to <struct_type> and <union_type>
	2. page 337: eliminate the production <key_dcltr> and both productions
		     <0008>
	3. page 341: change
			<cast_exp> ::= ( <typename_declaration> ) <prefix_exp>
		     to
			<cast_exp> ::= ( <typename_declaration> ) <cast_exp>

And that's all.  I've never tested the fixes and take no responsibility for
their accuracy.

						David Gentzel
----------------
ARPA:	unilog at cmu-cs-g
UUCP:	seismo!cmu-cs-g!unilog



More information about the Comp.lang.c mailing list