Nori language

Install Nori

Nori comes as roll, its project tool. roll installs the compiler, noric, keeps it up to date and builds your projects. One command installs both.

Linux (x86-64)

curl -fsSL https://raw.githubusercontent.com/mirkoattiladaniel/nori/main/install.sh | sh

The installer puts roll in ~/.nori/bin, adds that directory to your PATH, and installs the newest compiler. Open a new terminal afterwards so the PATH change takes effect.

Nothing else is needed: noric builds native executables with its own code generator and linker, with no C compiler and no LLVM.

Your first program

roll init hello
cd hello
roll run

roll init makes a project: a nori.manifest and src/main.nori. roll run builds it and runs it. The manifest is described in the language reference.

To learn the language step by step, run roll learn in an empty directory: an interactive tutorial of 69 short lessons, each checked as you go.

Keeping it up to date

CommandWhat it does
roll update noriinstall the newest compiler and use it
roll install <version>install a particular version
roll use <version>switch between installed versions
roll --versionthe version of roll

A project can pin its compiler: roll records the exact version and its checksum in nori.lock, so the same project builds the same way on every machine.

Editors

roll lsp runs Nori's language server, for any editor that speaks the Language Server Protocol.

Uninstalling

Delete ~/.nori, and the line the installer added to your shell's startup file (~/.profile, ~/.bashrc or ~/.zshrc, marked # nori).