Skip to content

Repository files navigation

Mila

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.

Dependencies

This project is written in Rust (2024 edition). You can compile it with cargo build.

LLVM version

I'm using LLVM version 18. Make sure you have LLVM 18 installed as building will fail otherwise.

Building

make build

or

cargo build
cp ./target/debug/mila ./build

Running

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.

Testing samples

Run ./test_samples.sh

Compiling a program

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

About

LLVM based frontend for the Mila programming language

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages