Skip to content

Reference

The complete Munos surface, organized for lookup. If you're new, the Learn path teaches these pieces in order with a worked example; this section is for when you know what you're after and want the exact rule or signature.

Language

The syntax and semantics of the language itself.

  • Syntax & structure — program layout, statements, line rules, comments.
  • Types — the primitive types, image, client, palettes, literals, and conversions.
  • Variables & constantsvar, const, scope, shadowing.
  • Operators — arithmetic, comparison, logical, bitwise, and precedence.
  • Arrays — declaration, indexing, and the len / size / push / pop / copy forms.
  • Structs — composite types.
  • Control flowif, while, for, break, continue.
  • Functions — parameters, defaults, named arguments, hoisting.
  • Events — the runtime-invoked handlers.
  • Client & serveron client / on server and shared code.

Builtins

Functions and events the runtime provides. The full list is grouped by job:

Appendix

Source of truth

This reference is written against the Munos compiler in packages/munos. The builtin signatures come from packages/munos/src/types/builtins.ts, which is the single source of truth the type-checker and code generator both consult.

Part of the MultiNostalgia project.