ALPHA: breaking changes expected. What that means
NanoC

Install NanoC

You need git and a C11 compiler (cc, gcc or clang). The compiler is plain portable C11, so it builds on Linux, macOS, BSD and Windows (MSYS2 or Git Bash).

sh
git clone --depth 1 https://github.com/NanoLanguages/NanoC
cd NanoC
cc -std=c11 -O2 mach.c -o mach
./mach install

This installs nanoc to ~/.local/bin and configures the editors it detects. Add --no-editors to skip editors or --prefix DIR to choose another location.

Check it works

sh
cat > hello.nc <<'EOF'
+stdio
f main
  puts("Hello from NanoC!")
  0
EOF
nanoc run hello.nc

nanoc run emits C, builds it with your C compiler and runs it. To keep the C, use nanoc c hello.nc -o hello.c.

Everyday commands

TaskCommand
Updatenanoc update
Uninstallnanoc uninstall (asks first; --yes skips the question)
Custom location./mach install --prefix DIR
Language cardnanoc help syntax
Check without writingnanoc check file.nc --json

Editors

Syntax highlighting is generated from one token table and installed for the editors detected on your machine.

EditorCommand
VS Code, VSCodium, Cursornanoc editor install vscode
Vimnanoc editor install vim
Neovimnanoc editor install neovim
Emacsnanoc editor install emacs
micronanoc editor install micro
GNU nanonanoc editor install nano
Sublime Text 4nanoc editor install sublime

Build and test from source

sh
./mach bootstrap   # C seed -> NanoC -> NanoC, byte-identical
./mach test        # unit tests, real C, sanitizers
./mach site        # build this website into _site