Re: C compiler from scratch.

Hans-Peter Diettrich <DrDiettrich1@aol.com>
Sat, 18 Jul 2009 04:08:55 +0200

          From comp.compilers

Related articles
C compiler from scratch. vikranthit@gmail.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. gopi.onthemove@gmail.com (gopi) (2009-07-16)
Re: C compiler from scratch. DrDiettrich1@aol.com (Hans-Peter Diettrich) (2009-07-18)
Re: C compiler from scratch. s_dubrovich@yahoo.com (2009-07-25)
| List of all articles for this month |

From: Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups: comp.compilers
Date: Sat, 18 Jul 2009 04:08:55 +0200
Organization: Compilers Central
References: 09-07-024
Keywords: C, parse
Posted-Date: 18 Jul 2009 08:07:31 EDT

Vikranth schrieb:
> 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?


You may have an look at my CtoPas project, where I implemented an
scanner, preprocessor and (almost LL(1)) parser for C code. The
implementation covers some Microsoft (Windows) and gcc extensions. The
used C grammar is somewhat scattered across the parser methods. See
<https://sourceforge.net/projects/topas/>


DoDi



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.