[comp.sources.wanted] YACC grammer for c

michael@orcisi.UUCP (12/06/86)

> The grammar in the back of Harbison and Steele is a real LALR(1) grammar
> and it YACC's just fine. They have even gone to the trouble of using "open"
> and "close" statements to remove the 1 shift/reduce error you normally
> get when compiling if-then-else statements.

Has someone typed this in?  I'm sure there must be.
How about posting it to comp.sources?

montnaro@chenengo.UUCP (12/09/86)

Mod.sources, Volume 1, has a yacc/lex grammar for ANSI C circa 11/84. This
should be a reasonable starting point.

Skip Montanaro

ARPA: montanaro%desdemona.tcpip@ge-crd.arpa
UUCP: seismo!rochester!steinmetz!desdemona!montanaro
GE DECnet: csbvax::mrgate!montanaro@desdemona@smtp@tcpgateway