Caution
The compiler can't compile crawfish programs yet.
- Rust Compiler
- LLVM
- Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh- Install
llvm-config-20andlibpolly-20-dev
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 20
sudo apt install libpolly-20-dev- Git clone the repository
git clone https://github.com/simontran7/crawfish.gitcdinto thecrawfish/directory, then build the project with GNU Make
cd crawfish/
cargo build --release- Move the
target/release/crawfishbinary to a desired location (e.g. in/Users/<your name>), then add it to yourPATHby adding the following line to your.bashrcfile
# in your .bashrc
export PATH=$PATH:<path to the crawfish compiler executable>Crawfish compiler
Usage:
crawfish [OPTIONS] <COMMAND> [ARGS...]
Command:
compile <file>.crw compile the current file
Options:
-h, --help print possible commands
-v, --version print compiler version
See docs/tour-of-crawfish.md for a tour of the language.
