Declarations & bindings
Bindings, functions, generic parameters, closures, classes, and the fields and methods a class holds.
Return to the grammar overview.
Terms#
These are the words you write in this part of the language. Each links to its page. The second column names the grammar rule the word belongs to.
| Term | Grammar rule |
|---|---|
embed | insere_expr |
const, var | fixum_decl |
await_const, await_var | figendum_decl |
let | sit_decl |
const, var | array_destruct |
const, var | object_destruct |
fn | functio_decl |
implements | generic_bound |
rest, optional, as, coalesce | parameter |
args, errors, exit, throws, readonly, options | func_modifier |
async_generator, async, generator | callable_posture |
then | ergo_joint |
free, kernel | closure_modifier |
do | fac_block |
lambda | clausura_legacy_expr |
class, implements | genus_decl |
const, static, optional, var | genus_field_decl |
const, static, optional, var | field_decl |
fn | functio_method_decl |
Formal grammar#
The rules for this part of the language are the parser's own definition of it. They are written for models and tools, so this page does not repeat them; the full list is at every production.