Installation
Gruel is currently in early development. To try it out, you'll need to build from source. If you do try it out, you'll certainly find bugs, and if you do please file them!
Prerequisites
- Rust toolchain - Install via rustup
- LLVM 22 - The compiler backend requires LLVM
- macOS:
brew install llvm@22and ensurellvm-configis on yourPATH - Ubuntu/Debian:
apt install llvm-22-dev - Fedora:
dnf install llvm22-devel
- macOS:
- A system linker
- macOS:
clang(install viaxcode-select --install) - Linux:
gccorclang
- macOS:
Building from Source
The first build will compile all dependencies, which may take a minute. Subsequent builds are fast.
That's it! You now have a working Gruel compiler at target/release/gruel. In the next chapter, we'll write our first program.