A self-hosted build tool for the Zap programming language.
- Zap
v0.1.1
Thor is self-hosted — it uses itself to build itself. The first build must be done manually using the Zap compiler directly.
git clone https://github.com/thezaplang/thor
cd thor
mkdir -p build
zapc src/main.zp -o build/thorOnce the bootstrap binary exists, use it to rebuild Thor with Thor itself:
./build/thor buildYou now have a fully self-hosted Thor binary.
# Option A — copy to a directory already in PATH
sudo cp build/thor /usr/local/bin/thor
# Option B — add the build directory to PATH (add to ~/.bashrc or ~/.zshrc)
export PATH="$PATH:/path/to/thor/build"
source ~/.bashrcVerify:
thor --versionthor new <project_name>
thor build
thor run
See LICENSE.