Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!usc!polyslo!ttwang
From: ttwang@polyslo.CalPoly.EDU (Thomas Wang)
Newsgroups: comp.object
Subject: Re: OOD applied to interpreters and compilers
Keywords: OOD interpreters
Message-ID: <1989Oct2.204603.10320@polyslo.CalPoly.EDU>
Date: 2 Oct 89 20:46:03 GMT
References: <26873@genrad.UUCP>
Reply-To: ttwang@polyslo.CalPoly.EDU (Thomas Wang)
Distribution: usa
Organization: Cal Poly State University -- San Luis Obispo
Lines: 21

charlie@genrad.com (Charlie D. Havener) writes:
>The examples I have seen on Object Oriented Design apply 
>nicely to problems like graphic window systems and to problems
>in which there are real physical objects one can think about.
>It is not at all clear to me how to apply OOD or to use Object
>oriented programming style to the design of program language
>compilers or interpreters. 

Object language is well suited for the development of compilers.  There are
many structures inside a compiler where an object language can help out.
For example: sets, graphs, hash tables, stacks, symbol tables, and sparse
matrix.  I managed to write a LL(1) backtracing parser generator in one
month using C++, so I can comfortably say that the above things definitely
helped.

>Charlie Havener GenRad Inc. (508-369-4400 x3302) charlie@genrad.com

 -Thomas Wang ("I am, therefore I am."
                 - Akira               )

                                                     ttwang@polyslo.calpoly.edu