EYG
Guides

Manage EYG projects with a self-contained binary. The source is in packages/gleam_cli.

To install without the Gleam and Bun toolchains, follow the install a prebuilt binary guide instead.

Prerequisites

ToolUsed for
Gleam ≥ 1.7Compiles the Gleam source to JavaScript
BunPackage the JS into a single executable

Install Gleam with these instructions

Install bun with:

curl -fsSL https://bun.sh/install | bash

Build and install

git clone https://github.com/CrowdHailer/eyg-lang.git
cd eyg-lang/packages/gleam_cli
./bin/install

The script runs ./bin/compile an uses sudo to move that executable to /usr/local/bin/eyg.

If sudo isn't available, for example inside a sandbox or a dev container, compile first and copy by hand:

./bin/compile
cp dist/eyg "$HOME/.local/bin/eyg"   # or anywhere on your $PATH

Verify

To verify inline source execution, run:

eyg eval -c '!int_add(1, 1)'

The value 2 should be printed.

Want to stay up to date?
Join our mailing list.