o
odinpkg.dev
packages / library / zen

zen

0dad584library

scripting language

MIT · updated 11 hours ago

zen

A lightweight dynamically typed programming language written in Odin.

zen code example

Check out more code in /examples!

features

  • dynamic typing with garbage collection
  • object-oriented programming: classes and inheritance
  • first-class functions and closures
  • file-based module system for code organization
  • elixir-inspired pipe operator |>
  • minimal standard library

All the documentation about the language is in the markdown file DOCUMENTATION.md in the root of this repository.

development

The script x.py in the root of this repository is where you will go for most of your development work on zen. It is used for building, testing, running benchmarks and generating documentation.

building

requirements

zen uses isocline for its REPL. Downloading and setting up the library for use is handled by the x.py build script automatically.

steps

Run the build script with the dbg arg to create a debug build:

./x.py dbg

This will produce a debug build as ./bin/dbg/zen. To produce a release build, run:

./x.py rel

testing

The requirements are the same as for building.

steps

To test everything at once, run:

./x.py test

contributing

If you find a bug or want to suggest something, feel free to open an issue or pull request!