Skip to content

Language specification

Normative syntax and semantics for the Atoll language.

Updated View as Markdown

This section will be the normative language reference. It is intentionally separate from the language guide: guide pages teach use; specification pages define accepted programs, static semantics, runtime behavior, diagnostics, and desugarings.

Planned chapters

  1. Lexical structure, tokens, comments, literals, and source encoding
  2. Names, scopes, visibility, modules, and imports
  3. Types, inference, coercions, subtyping, generics, and traits
  4. Patterns, bindings, places, ownership, and mutation
  5. Expressions, statements, blocks, and control flow
  6. Functions, closures, calls, methods, and dispatch
  7. Data declarations: structs, enums, errors, aliases, and implementations
  8. Effects, suspension, tasks, streams, and host operations
  9. Built-in types and prelude contracts
  10. Grammar and diagnostic requirements

The existing docs/grammar.md is an input to this work, not yet the canonical grammar; it still contains removed and renamed forms.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close