[comp.lang.c++] Compiler implementation in C++

suresh@atc1.atc.com (P. Suresh) (05/15/91)

Subject:  Compiler implementation in C++

We are writing a translator in C++ for a graphics description language,
roughly of the size of a programming language.  This is our first C++ 
project and will appreciate seeing some C++ code examples in the areas
of parsing, semantics, symbol table handling, interpretors etc.  Does
any one know a book or articles on these?  Is there a public-domain
compiler for any language, small or big, that can get us started in
the right direction in designing appropriate data structures
(classes)?  Any pointers will be greatly appreciated.  You can
email your replies if you like.

Thanks.

                                          |
P. Suresh                                 | Email: suresh@atc.com
Advanced Technology Center                | Tel: 714/583-9119
22982 Mill Creek Dr                       | Fax: 714/583-9213
Laguna Hills, CA 92653                    |
                                          |

jjc@jclark.UUCP (James Clark) (05/15/91)

In article <1991May14.184613.25167@atc1.atc.com> suresh@atc1.atc.com (P. Suresh) writes:

   We are writing a translator in C++ for a graphics description language,
   roughly of the size of a programming language.  This is our first C++ 
   project and will appreciate seeing some C++ code examples in the areas
   of parsing, semantics, symbol table handling, interpretors etc.  Does
   any one know a book or articles on these?  Is there a public-domain
   compiler for any language, small or big, that can get us started in
   the right direction in designing appropriate data structures
   (classes)?

You might want to have a look at groff which includes a C++
implementation of the pic graphics language.  It's not public domain,
but it is free.  You can get it by anonymous ftp from
prep.ai.mit.edu:pub/gnu/groff-1.01.tar.Z, or from your local GNU
archive.

James Clark
jjc@jclark.uucp