Xref: utzoo comp.lang.c:40154 comp.compilers:2091 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!world!iecc!compilers-sender From: jos@and.nl (J. Horsmeier) Newsgroups: comp.lang.c,comp.compilers Subject: LL(1) C grammar Keywords: grammar Message-ID: <91-06-021@comp.compilers> Date: 17 Jun 91 10:20:39 GMT Sender: compilers-sender@iecc.cambridge.ma.us Reply-To: jos@and.nl (J. Horsmeier) Followup-To: comp.lang.c Organization: AND Software BV Rotterdam Lines: 30 Approved: compilers@iecc.cambridge.ma.us X-Organization: AND Software bv Westersingel 108 3015 LD Rotterdam The Netherlands X-Fax: +31 (10) 436 7110 X-Phone: +31 (10) 436 7100 Hi there, anyone out there having (knowing of) a LL(1) grammar for `C'. ANSI or K&R or both would be fine. I'm just interested in the syntax, no semantics embedded in the syntax of the grammar (e.g. operator precedence). This would greatly reduce the complexity of the syntax (I think). I'm currently working on a low profile project: Reference document generation, given `C' source files. The thing is supposed to generate `frames' of reference manuals. We are working with a home brew LL(1) parser generator, including a lex look alike NFA->DFA regular expression scanner. For several reasons (interpretation versus compilation, incremental parser building etc.), we do not want to use lex/yacc. Ambiguities (shift/reduce, non factored rules etc.) are okay, the generator can deal with them ... thanx in advance, Jos J.A. Horsmeier AND Software B.V. phone : +31 10 4367100 Westersingel 106/108 fax : +31 10 4367110 3015 LD Rotterdam NL e-mail: jos@and.nl [I know of several yacc grammars, but no LL(1) grammar other than the one implicitly in the Ritchie C compiler. -John] -- Send compilers articles to compilers@iecc.cambridge.ma.us or {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.