Chapter 1

Quick Start

Install HHY, build the interpreter, and run your first script.

Prepare your environment

HHY V1.0.0 officially supports macOS arm64, Linux arm64, and Linux x86_64. A source build requires a C11 compiler, make, libcurl, PCRE2, and BDWGC.

sh
brew install curl pcre2 bdw-gc
git clone https://github.com/hh696-wq/hhy-vm.git
cd hhy-vm
make
./build/hhy --version

Install the command

sh
make install PREFIX="$(brew --prefix)"
hhy --version

After installation, execute any .hhy file with hhy run.

Your first script

example.hhy
let language = "HHY"

["Flow", "Pipe", "System"]
    |> map { word -> "{language}: {word}" }
    |> print
sh
hhy run hello.hhy