Skip to content

Installation

  1. Install Zeen’s latest version:

    Terminal window
    curl -fsSL https://github.com/mealet/zeen/releases/latest/download/install.sh | sh
  2. Check the version with:

    Terminal window
    zeen --version
  1. Install the Rust Programming Language from the official website.

  2. Install LLVM 22 following the tutorial.

  3. Clone the actual Zeen repository:

    Terminal window
    git clone https://github.com/mealet/zeen
  4. Open the cloned directory in the terminal and build the compiler:

    cd compiler
    cargo build --release
  5. You’ll find the executable in the target/release directory:

    • Directorycompiler
      • Directorytarget
        • Directoryrelease
          • zeen compiler executable (on Windows zeen.exe)
          • …
  1. Create new .zn file and write code:

    main.zn
    fn main() {
    @println("Hello, World!");
    }
  2. Compile source to binary:

    Terminal window
    zeen main.zn output

    To see all supported targets:

    Terminal window
    zeen --targets-list
  3. Run the compiled program:

    Terminal window
    ./output
    Hello, World!