docs

你正在阅读 v0.1.2 的文档。Nabi 0.1.2 已不再提供支持。 最新版本: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.

指南
Twenty-one chapters, from installation to concurrency, FFI, packages, arrays, and a cookbook. Every code sample is checked when the site is built.
示例
Small complete programs: CLI tools, file processing, a TCP echo server, parallel map, an interpreter, and more.
语言规范
Ten chapters, from lexical structure through types, expressions, modules, the meta system, the runtime, and the ABI.
标准库
Every module, type and function of the standard library, generated from its sources.
库规范
The specification of the three tiers bare / core / std.
错误代码
One page per nabic error code, with an example of the error and its fix.
工具
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