This is an optimizing compiler for ML to Java Bytecode
The ML dialect selected is, roughly speaking:
val fun exceptions datatypes
To install, clone this project:
git clone https://github.com/j-c-w/mlc cd mlc
And run the installation executable
Pressing (y) as needed. You may need to install some tools (such as SBT) to build CMLC.
Then, the compiler is executable as:
cmlc <File Name>
Run produced jar files as:
java -jar <Jar name>
To build, install sbt, navigate to this directory and run
This will open up the SBT interface.
In the SBT prompt. This will produce a Jar file to compiler to JVM assembler.
debug_install.sh script. In that script set
the location of the produced jar file (it will likely be the same).
This will create a local in-tree installation that does not require a full-rebuild.