This is a compiler for the Mila programming language
which is a subset of the Pascal programming language.
It's written in Rust with LLVM bindings via inkwell.
This project is written in Rust (2024 edition).
You can compile it with cargo build.
I'm using LLVM version 18. Make sure you have LLVM 18 installed as building will fail otherwise.
make build
or
cargo build
cp ./target/debug/mila ./build
It's recommended not to call the build/mila binary directly.
One can instead use the mila wrapper script inside a root directory:
./mila
Details below.
Run ./test_samples.sh
Use supplied script to compile source code into binary. First argument is the program, second argument is the output file.
./mila test.mila test.out