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.
Skip to contentFor AI agents: Documentation index at /llms.txt
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.