Home | About | Partners | Contact Us
SourceForge Logo

Quick Links

Home
News
Thoughts and Rants
License
SourceForge Info
Download
Browse CVS
Mailing Lists

Understanding...

Concept programming
Moka
XL
Thin Tools
Active Libraries
Refactoring
Optimizations
Coda
Notes

More Info

Contributors
Related Ideas
Some history
Applications
Other links
The GNU Project

Moka - The Java to Java Extensible Compiler

Moka is the Java front-end for Mozart. Concept programming is about representing concepts in programs. Traditionally, this has been done mostly using programming languages, which are processed by interpreters or compilers. Moka demonstrates how a "traditional" language can be incorporated in Mozart.

How does it work?

Moka features a convenient way to take advantage of Mozart features and thin tools for your Java programs.

The way Moka works is shown in the following picture:

The Java source code is parsed by Moka, and transformed into Mozart tree representation. Various plug-ins can then be invoked to work on this representation. Finally, the resulting program tree can be rendered as source code, HTML, or another format. If no processing happens, Moka acts like a simle pretty printer.

How do I generate bytecode?

Moka is a Java-to-Java compiler. Its output is Java source, not bytecode. In order to produce bytecode, you need a "normal" Java compiler. In order to produce native code, you need a Java-to-native compiler like GNU GCC.


Copyright Christophe de Dinechin
First published Feb 17, 2000
Version 1.3 (updated 2002/10/09 06:16:44)