Docs
Learn Musi by writing Musi.
Start with files and packages, then move through expressions, data, effects, types, abstractions, and the toolchain.
Table of contents
Chapter groups
Start
Getting started
Install, PATH setup, and the difference between musi and music.
First program
A first Musi file without extra ceremony.
Files, packages, and entry
Packages, musi.json, and the resolved entry file.
Core language
Expressions and bindings
The base reading model for names, sequences, and branching.
Functions and calls
Functions, calls, and recursion without extra control syntax.
Imports and packages
Import expressions, @std, and the musi:* foundation namespace.
Data and pattern matching
Data definitions, constructors, and pattern matching.
Records and arrays
Structured values and the current writeable-data surface.
github.com/musi-lang/musi
musi-lang.com