Skip to content

JanotLeLapin/lea

Repository files navigation

Lea

The compiler implemented in Rust for my toy language (Lea), targeting the JVM.

module Main;

fn main(args: String[]) {
  print("Hello, World!");
}

Usage

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!

Tests

If you have Nix installed on your system, you may run the unit tests with nix run .#tests.