|How Can I Make a Compiler With Java? email@example.com (Kevin Albrecht) (1997-10-08)|
|Re: How Can I Make a Compiler With Java? firstname.lastname@example.org (Eric Harth) (1997-10-10)|
|Re: How Can I Make a Compiler With Java? email@example.com (Scott Stanchfield) (1997-10-10)|
|Re: How Can I Make a Compiler With Java? firstname.lastname@example.org (1997-10-10)|
|Re: How Can I Make a Compiler With Java? email@example.com (1997-10-10)|
|Re: How Can I Make a Compiler With Java? firstname.lastname@example.org (Andrew T. Brown) (1997-10-14)|
|From:||email@example.com (Per Bothner)|
|Date:||10 Oct 1997 22:06:27 -0400|
|Organization:||Cygnus Solutions, CA|
Kevin Albrecht <firstname.lastname@example.org> wrote:
>I would like to create a compiler and/or interpreter in Java for a program-
>ming language that I have created.
JavaCC and ANTLR are parser-generators. They make it easier to build
a parser for your language, and (for example) turn programs into
Abstract Syntax Trees (AST).
For actually running your programs once you have an AST, may I plug
Kawa? This includes the package gnu.bytecode, which makes it
relatively easy to compile into Java bytecodes, which can then be run
by any Java VM. Kawa is a more-or-less complete implementation of
Scheme, so it includes a lot of classes that might be useful in
implementing other languages. (Supporting other languages is one of
the long-term goals of Kawa.)
See http://www.cygnus.com/~bothner/kawa.html for information on Kawa
(version 1.5). A more recent snapshot (which uses some JDK 1.1
features) is in ftp://ftp.cygnus.com/pub/bothner/kawa-1.5.90.tar.gz.
Cygnus Solutions email@example.com http://www.cygnus.com/~bothner
Return to the
Search the comp.compilers archives again.