Installation
Quick Installation
Section titled “Quick Installation”-
Install Zeen’s latest version:
Terminal window curl -fsSL https://github.com/mealet/zeen/releases/latest/download/install.sh | sh -
Check the version with:
Terminal window zeen --version
-
Install Zeen’s latest version (with powershell):
Terminal window irm https://github.com/mealet/zeen/releases/latest/download/install.ps1 | iex -
Check the version with:
Terminal window zeen --version
Build From Source
Section titled “Build From Source”-
Install the Rust Programming Language from the official website.
-
Install LLVM 22 following the tutorial.
-
Clone the actual Zeen repository:
Terminal window git clone https://github.com/mealet/zeen -
Open the cloned directory in the terminal and build the compiler:
cd compilercargo build --release -
You’ll find the executable in the
target/releasedirectory:Directorycompiler
Directorytarget
Directoryrelease
- zeen compiler executable (on Windows
zeen.exe) - …
- zeen compiler executable (on Windows
Compiler Usage
Section titled “Compiler Usage”-
Create new
.znfile and write code:main.zn fn main() {@println("Hello, World!");} -
Compile source to binary:
Terminal window zeen main.zn outputTo see all supported targets:
Terminal window zeen --targets-list -
Run the compiled program:
Terminal window ./outputHello, World!
