Install Nix and enable Flakes then, in a shell, run:
git clone https://github.com/Kindelia/HVM.git
cd HVM
# Start a shell that has the `hvm` command without installing it.
nix shell .#hvm
# Or install it to your Nix profile.
nix profile install .#hvm
Same as step 2 of the "Usage" section.
# Interpret the main.hvm file, passing "(Main 25)" as an argument.
hvm run -f main.hvm "(Main 25)"
# Compile it to Rust.
hvm compile main.hvm
cd main
# Initialise the Nix development shell.
nix develop .#hvm
# Compile the resulting Rust code.
cargo build --release
# Run the resulting binary.
./target/release/main run "(Main 25)"