Skip to main content

Module set_schema

Module set_schema 

Source
Expand description

Schema for #set directives recognised in MVP 1.5.

Each Target (e.g. page, text, document) advertises a fixed list of (key, slot type) pairs. Unknown targets and unknown keys produce diagnostics in the lowerer (MOS0011/MOS0015). Slot types drive the coerce_value step and MOS0020 type-mismatch messages.

Structsยง

Slot ๐Ÿ”’

Enumsยง

SlotType ๐Ÿ”’
Target ๐Ÿ”’

Constantsยง

DOCUMENT_SLOTS ๐Ÿ”’
IMAGE_SLOTS ๐Ÿ”’
PAGE_SLOTS ๐Ÿ”’
TEXT_SLOTS ๐Ÿ”’

Functionsยง

lookup_target ๐Ÿ”’