Renderingen-US

Programs, regions & imports

The shape of a source file: optional frontmatter, the optional module region, the top-level statement spine, imports, and the program entry points and test suites.

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
importimporta_record
fromex_field
asut_field
allomnia_field
from, importimporta_sugar
publicpublica
asnamed_import
aswildcard_import
constselective_import
asimport_value_binding
args, exitentry_header
mainincipit_stmt
async_mainincipiet_stmt
describeprobandum_decl
testproba_stmt
expect_failure, flaky, todo, bench, skip, repeat, only, only_in, tag, timeoutproba_modifier
all, teardown, async_teardown, setup, async_setuppraepara_block

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.