Draft / Experimental: Zith documentation describes a language under active development. Check Implementation Status before relying on a feature.
Zith is experimental. This guide uses the working zithc create, build, and run commands described in Implementation Status.
zithc create hello-zith
cd hello-zith
create writes a ZithProject.toml and src/main.zith scaffold.
Replace src/main.zith with a small program:
fn add(a: i32, b: i32): i32 { a + b }
fn main() {
let total = add(20, 22);
}
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.