Installation
Turf comes as a standalone compiler binary. The simplest way to get started is to download the pre-built release for your OS and architecture from the Turf repo release assets.
Download a release
macOS (Apple Silicon / ARM64):
tar -xzf turf-v0.4.0-macos-arm64.tar.gz Linux (x86_64):
tar -xzf turf-v0.4.0-linux-x86_64.tar.gz Linux (Arch x86_64):
tar -xzf turf-v0.4.0-linux-arch-x86_64.tar.gz Windows (x86_64):
Download `turf-v0.4.0-windows-x86_64.zip` and extract it (for example, using File Explorer).
Compile and run
Once extracted, you can compile a Turf file (`.tr`) and run the produced executable:
./turf example.tr -o program
./program Build from source (optional)
From the `turf-lang` repo root, run:
./scripts/update_compiler.sh