For AI agents: Documentation index at /llms.txt

Skip to content

Basic syntax

This section covers the lexical and surface syntax of Motoko: how to define an actor, write functions, declare identifiers, use literals and operators, and the conventions for comments and whitespace.