Overview
The Evie guide
The syntax of Evie is designed to feel familiar, clean, and expressive. Think of it as the sweet spot where Go, Rust, and JavaScript meet:
- The clean simplicity, package structure, and
:=binding style of Go. - Safe-by-default immutability inspired by Rust (
varis required to allow mutation). - The dynamic expressiveness, first-class functions, closures, and object ergonomics of JavaScript/TypeScript.
Getting started
Prerequisites
- Go 1.27+ installed (go.dev/doc/install)
Install or Build
# Install the CLI directly with Go
go install github.com/hxkhan/evie/evie@latest
# Or clone and build from source
git clone https://github.com/hxkhan/evie.git
cd evie
go build ./evie
# Start an interactive REPL (multi-line input, persistent state, :help for commands)
./evie
# Run an example
./evie ./examples/fib.ev
# Ctrl+C stops a running script with an error that shows where it was; press it again to exit at once
# Run code without a file; the standard packages it names are imported for it
./evie -e 'math.sqrt(2)'
./evie -e 'for w in "go evie go".fields() { io.println(w.toUpper()) }'
# Inspect compiled packages, globals, classes, slots, escapes and closure captures without running main
./evie -dump ./examples/captures.ev
# Report syntax and compile errors without running anything; exit status 1 when there are any
./evie -check ./examples/fib.ev
# Print the version (also -v), or the commit the binary was built from
./evie --versionEditor Support
The VS Code extension in extensions/vscode shows errors as you type, and offers go to definition, find all references, hover, completion and an outline. Its analysis is Evie's own compiler, compiled to WebAssembly, so it needs nothing else installed. Build it with npm install && npm run package in that folder, then install the .vsix. Other tools can use the analysis package directly.
Run Tests
go test ./...
go vet ./...