It's simpler to use the docker image if you do not want to install llvm manually.
alias swahili='docker run -w "$(pwd)" -v "$(pwd)":"$(pwd)" ghcr.io/papepathe/swa-lang:master'
swahili compile -s my-code.swa
swahili tokenize -s my-code.swa
swahili parse -s my-code.swaSwahili requires the LLVM and Clang toolchain for compilation. Please follow the instructions below depending on your operating system.
sudo apt update
sudo apt install -y clang llvm-19sudo dnf install clang llvm-19sudo pacman -S clang llvm-19brew update
brew install llvm@19
xcode-select --installAfter installation, you can check your clang and llvm versions:
clang --version
llvm-config --versionMake sure the installed tools are in your PATH. If you installed via Homebrew on macOS, you may need to add the following to your shell profile:
export PATH="/usr/local/opt/llvm/bin:$PATH"For more details, refer to the official documentation: