|C compiler from scratch. email@example.com (Vikranth) (2009-07-13)|
|Re: C compiler from scratch. Meyer-Eltz@t-online.de (Detlef Meyer-Eltz) (2009-07-15)|
|Re: C compiler from scratch. firstname.lastname@example.org (gopi) (2009-07-16)|
|Re: C compiler from scratch. DrDiettrich1@aol.com (Hans-Peter Diettrich) (2009-07-18)|
|Re: C compiler from scratch. email@example.com (2009-07-25)|
|Date:||Thu, 16 Jul 2009 22:02:32 -0700 (PDT)|
|Posted-Date:||17 Jul 2009 14:41:22 EDT|
On Jul 13, 5:40 pm, Vikranth <vikrant...@gmail.com> wrote:
> Hi , I am looking for C grammar that is suitable for building a (hand
> written) compiler from scratch.Does the grammar provided in appendix
> of K&R book work? Or any alternatives please?
The grammar that comes with a recent edition of the book should
definitely work. Depends on whether you would like to build a compiler
for K&R C, ISO / ANSI C89 or the more recent C99.
STF comes with a complete C Grammar file (optional add-on). The
grammar file is an STML model that can be used with STF tools.
SANKHYA Teraptor extensively makes use of these capabilities for a lot
of activities (not for C compiler).
Sankhya Technologies Private Limited
Mobile: +91 94408 78042
Return to the
Search the comp.compilers archives again.