| Related articles |
|---|
| How Can I Make a Compiler With Java? kevalb@earthlink.net (Kevin Albrecht) (1997-10-08) |
| Re: How Can I Make a Compiler With Java? harth2@cuimail.unige.ch (Eric Harth) (1997-10-10) |
| Re: How Can I Make a Compiler With Java? thetick@magelang.com (Scott Stanchfield) (1997-10-10) |
| Re: How Can I Make a Compiler With Java? bothner@cygnus.com (1997-10-10) |
| Re: How Can I Make a Compiler With Java? dcm@c-sw.com (1997-10-10) |
| Re: How Can I Make a Compiler With Java? andrewbrown@acm.org (Andrew T. Brown) (1997-10-14) |
| From: | bothner@cygnus.com (Per Bothner) |
| Newsgroups: | comp.compilers |
| Date: | 10 Oct 1997 22:06:27 -0400 |
| Organization: | Cygnus Solutions, CA |
| References: | 97-10-036 |
| Keywords: | Java, tools |
Kevin Albrecht <kevalb@earthlink.net> 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.
--
--Per Bothner
Cygnus Solutions bothner@cygnus.com http://www.cygnus.com/~bothner
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.