Renderingen-US

Statements & control flow

Statements and control flow: conditionals, loops, switch and match, guards, extraction, loop and function transfer, and the diagnostic statements.

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.

TermGrammar rule
ifsi_stmt
elifsi_tail
elsesecus_clause
whiledum_stmt
range, ref, from, const, for, varitera_stmt
atapud_clause
switchelige_stmt
casecasu_elige_clause
defaultceterum_clause
match, alldiscerne_stmt
anddiscriminants
casecasu_variant_clause
guardcustodi_stmt
ifsi_guard_clause
from, const, varex_stmt
asextract_field
restceteri_field
returnredde_stmt
return_awaitreddet_stmt
awaittacebit_stmt
yieldcede_stmt
breakrumpe_stmt
continueperge_stmt
passtacet_stmt
assert, panicadfirma_stmt
throw, requirerequirit_stmt
throw, rejectreice_stmt
warn, write, debugnota_stmt
while, dofac_stmt

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.