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.
brew install curl pcre2 bdw-gc
git clone https://github.com/hh696-wq/hhy-vm.git
cd hhy-vm
make
./build/hhy --versionInstall the command
make install PREFIX="$(brew --prefix)"
hhy --versionAfter installation, execute any .hhy file with hhy run.
Your first script
let language = "HHY"
["Flow", "Pipe", "System"]
|> map { word -> "{language}: {word}" }
|> printhhy run hello.hhy