From first line to full toolchain — start in the playground, go further with the CLI.
The fastest way to explore Zym is the Playground. It runs the full language in your browser — variables, functions, structs, closures, continuations, macros, the preprocessor — everything, no install required.
Write, run, and experiment with Zym directly in the browser. The full language, right here.
Open PlaygroundThis is your entry point. Explore the syntax, test ideas, see what Zym feels like. When you're ready for more — file I/O, native modules, compiled executables — that's where the CLI comes in.
The Zym CLI is a single binary that compiles, runs, packages, and inspects Zym programs. It's the full toolchain — everything you need to go from script to standalone executable.
Windows and Linux binaries — drop in, run scripts, no build step.
Clone the repository and build with CMake. Full control over the build.
Create a file called hello.zym:
print("Hello from Zym!");
Run it:
zym hello.zym
A slightly richer example — variables, functions, loops, and a list.
func fibonacci(n) { if (n < 2) return n; return fibonacci(n - 1) + fibonacci(n - 2); } var results = []; for (var i = 0; i < 10; i = i + 1) { push(results, fibonacci(i)); } print(results);
zym example.zym
// → [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
Zym compiles to bytecode and can package scripts into standalone executables.
Compile once, run anywhere — bytecode is portable across platforms.
zym example.zym -o example.zbc // compile to bytecode zym example.zbc // run bytecode directly
Package your script into a single binary — no runtime install needed for end users.
zym example.zym -o example.exe // Windows zym example.zym -o example // Linux
-r to specify a runtime binary for a different platform.
See the CLI Reference for details.
You've got the basics. Here's where to dig deeper depending on what you need.