---
title: "Language specification"
description: "Normative syntax and semantics for the Atoll language."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.atoll.workreef.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Language specification

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 stdlib 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.

Source: https://docs.atoll.workreef.dev/specification/index.mdx
