LALR(1) Grammer for C

stephen at datacube.UUCP stephen at datacube.UUCP
Tue Oct 22 01:12:00 AEST 1985


[out, out damned line!]

I have recently been engaged in implementing a yacc grammar based
on the one provided in Harbison and Steele's _C: A Reference Manual_ and
have encountered a bug. On page 337 the following productions have been
provided:

<key_dcltr> ::= <identifier>
...
<0008> ::= <key_dcltr>
<0008> ::= <key_dcltr> , <key_dcltr>
...

Neither <key_dcltr> nor <0008> are otherwise referenced in the grammar.

If anyone has solved this bug, or if it has been fixed in subsequent
editions, could they please post it to the net?

Thanks,

Stephen Watkins                    UUCP: ihnp4!datacube!stephen
Datacube Inc.; 4 Dearborn Rd.; Peabody, Ma. 01960; 617-535-6644



More information about the Comp.lang.c mailing list