The compiler implemented in Rust for my toy language (Lea), targeting the JVM.
module Main;
fn main(args: String[]) {
print("Hello, World!");
}
Download and compile the crate:
git clone https://github.com/JanotLeLapin/lea
cd lea
cargo build --release
Compile and run your program:
./target/release/leac myleafile.lea
java Main # prints: Hello, World!
If you have Nix installed on your system, you may run the unit tests with nix run .#tests
.