Re: Object Oriented Compiler Design Problem

"Daniel C. Wang" <danwang+news@cs.princeton.edu>
18 Sep 1998 22:59:25 -0400

          From comp.compilers

Related articles
[2 earlier articles]
Re: Object Oriented Compiler Design Problem qjackson@wave.home.com (Quinn Tyler Jackson) (1998-09-13)
Re: Object Oriented Compiler Design Problem dwight@pentasoft.com (1998-09-13)
Object Oriented Compiler Design Problem dboucher@locus.ca (Dominique Boucher) (1998-09-13)
Re: Object Oriented Compiler Design Problem brueni@ipass.net (Dennis Brueni) (1998-09-13)
Re: Object Oriented Compiler Design Problem mikee@cetasoft.cog (1998-09-13)
Re: Object Oriented Compiler Design Problem jucie@uol.com.br (Juciê Dias Andrade) (1998-09-13)
Re: Object Oriented Compiler Design Problem danwang+news@cs.princeton.edu (Daniel C. Wang) (1998-09-18)
| List of all articles for this month |

From: "Daniel C. Wang" <danwang+news@cs.princeton.edu>
Newsgroups: comp.compilers
Date: 18 Sep 1998 22:59:25 -0400
Organization: Princeton University
References: 98-09-019 98-09-030
Keywords: OOP

dwight@pentasoft.com (Dwight VandenBerghe) writes:
{stuff deleted}
> I do this when I'm stuck with
> C++ as an implementation language and am forced to use it by
> unenlightened management. ...


\begin{blatant plug}
If you get tired of writing all that ugly C++ code when you really want
something like the ML code, you can try


    http://www.cs.princeton.edu/zephyr/ASDL


which takes something like the ML specification an spits out C++ code as
well as a few other things.


module AST {
  symbol = Constant(int i) | Variable(string s, int i)
}


If you throw something like the above at the ASDL tool (asdlGen) you basically
get the same C++ code above with the addition of a "visitor" design
pattern. The web page has a web interface to the tool so you can play
with it online to see what it does.
\end{blatant plug}
--


Post a followup to this message

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