Draft / Experimental: Zith documentation describes a language under active development. Check Implementation Status before relying on a feature.

Quick Start

Zith is experimental. This guide uses the working zithc create, build, and run commands described in Implementation Status.

Create a project

zithc create hello-zith
cd hello-zith

create writes a ZithProject.toml and src/main.zith scaffold.

Write a program

Replace src/main.zith with a small program:

fn add(a: i32, b: i32): i32 { a + b }

fn main() {
    let total = add(20, 22);
}

Build and run

zithc check
zithc build
zithc run

check type-checks without emitting output. run compiles and executes in one step. Continue with the Introduction for the documentation map, or read Syntax before expanding the program.