[comp.lang.c] YACC/LEX Grammars for C

jwabik@umn-d-ub.D.UMN.EDU (Jeff Wabik) (09/03/87)

Can anyone tell me where I can get YACC and LEX grammars for "C"?  Free
would be nice, but a for a fee is fine, too .. 8^)

Thanks in advance .. 

	-Jeff

lenoil@apple.UUCP (09/08/87)

In article <25@umn-d-ub.D.UMN.EDU> jwabik@umn-d-ub.D.UMN.EDU (Jeff Wabik) asks:
>Can anyone tell me where I can get YACC and LEX grammars for "C"?  Free
>would be nice, but a for a fee is fine, too .. 8^)

C: A Reference Manual, by Harbison & Steele contains a LALR(1) grammar for C,
which you should be able to use for YACC.  Published by Prentice-Hall.  Aside
from the grammar, it also is an excellent manual, in my opinion superior to
K&R.