docs

You are reading the docs for v0.1.2. Nabi 0.1.2 is no longer supported. Latest release: v0.1.3 →

#Nabi Docs

The guide, examples, language reference and standard library of Nabi, for the version in the menu above.
curl -fsSL https://nabi.sh | sh

macOS, Linux and FreeBSD. On Windows, use install.ps1.

Guide
Twenty-one chapters, from installation to concurrency, FFI, packages, arrays, and a cookbook. Every code sample is checked when the site is built.
Examples
Small complete programs: CLI tools, file processing, a TCP echo server, parallel map, an interpreter, and more.
Language spec
Ten chapters, from lexical structure through types, expressions, modules, the meta system, the runtime, and the ABI.
Std library
Every module, type and function of the standard library, generated from its sources.
Library spec
The specification of the three tiers bare / core / std.
Error codes
One page per nabic error code, with an example of the error and its fix.
Tools
The nabic compiler, the nabi package tool, the nabicc C compiler, the REPL, the Jupyter kernel, the LSP server, and debugging tools.

#Versions

Each release series has its own docs: docs.nabi-lang.org/0.1/ for Nabi 0.1.x, and so on; latest/ is the newest release and dev/ follows the main branch. Only the latest series gets fixes. The spec introduction gives the motivation and philosophy of the language. Packages are on the package registry, packages.nabi-lang.org; Publishing Packages says how to put yours there.

Found a mistake? Edit this page on GitHub. Last updated