Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!att!princeton!pucc!EGNILGES From: EGNILGES@pucc.Princeton.EDU (Ed Nilges) Newsgroups: comp.lang.c Subject: Re: LL(1) C grammar Message-ID: <12853@pucc.Princeton.EDU> Date: 18 Jun 91 19:17:34 GMT References: <91-06-021@comp.compilers> Reply-To: EGNILGES@pucc.Princeton.EDU Organization: Princeton University, NJ Lines: 13 Disclaimer: Author bears full responsibility for contents of this article In article <91-06-021@comp.compilers>, jos@and.nl (J. Horsmeier) writes: >Hi there, > >anyone out there having (knowing of) a LL(1) grammar for `C'. ANSI or K&R or >both would be fine. The 2nd Edition of the C programming book includes a grammar for C in an appendix which, although not LL(1), could be hacked-with until you get unambiguous FIRST sets. This is not the most fun thing in the world (I speak from the experience of hacking the grammar in the IBM reference manual for the REXX language into LL(1)-hood) but if you cannot find it you must make it.