|Compiler construction in C++ and OOD email@example.com (1993-02-03)|
|Re: Compiler construction in C++ and OOD firstname.lastname@example.org (1993-02-04)|
|Re: Compiler construction... email@example.com (Todd Jonker) (1993-02-05)|
|Re: Compiler construction in C++ and OOD firstname.lastname@example.org (1993-02-08)|
|From:||email@example.com (Cliff Click)|
|Organization:||Center for Research on Parallel Computations|
|Date:||Thu, 4 Feb 1993 18:49:10 GMT|
firstname.lastname@example.org (Vivek Buzruk) writes:
> Till now I thought a compiler is not a good application for O-O design.
> I will be happy if any one tells whether any complete compiler is written
> in C++ either. Also in what way C++ is used, only as a better C or flavor
> of OOD.
My research compiler is written entirely in C++ (except for the front-end
parsing stuff). I find the O-O issues immensely helpful. I have class
definitions for all the interesting internal data structures: hash tables,
symbol tables, instructions, etc. The complexity control C++ gives me is
a BIG win.
Of course, I'm in the minority here at Rice. Most of the previous work
has been done in C. A newer project (1 yr old or so) has been started in
C, but with design decisions that strongly mirror O-O design.
> Obviously one can not go away from traditional phase structured design
> to define the functionality of a compiler.
Hummm... I would disagree with this statement - and don't see what it has
to do with O-O design of a compiler.
> -- Vivek -> email@example.com
Cliff Click firstname.lastname@example.org
Return to the
Search the comp.compilers archives again.