Family schemas¶
The keyword schemas a distribution-family call in QVR source must match.
family_schemas
¶
Keyword schemas for QVR distribution-family construction.
A family call matches one complete schema. Most families have one canonical schema supplied by their registry record; families with mutually exclusive parameterizations declare each alternative here.
FAMILY_ALIASES
module-attribute
¶
Surface family names that resolve to another family's registry record.
A key is a name a source may write; its value is the family whose specification builds the distribution.
DISTRIBUTION_FAMILIES
module-attribute
¶
DISTRIBUTION_FAMILIES: frozenset[str] = frozenset((*_FAMILY_PARAMETERS, *FAMILY_ALIASES))
Every distribution-family name accepted in QVR source.
Highlighters consume this set so their surface vocabulary follows the same schemas used by validation and lowering.
family_parameterizations
¶
Return every complete keyword schema accepted by family.
| PARAMETER | DESCRIPTION |
|---|---|
family
|
The family name as written in source.
TYPE:
|
canonical
|
The parameter names the family's registry record declares,
used when no schema for
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
tuple[tuple[str, ...], ...]
|
One tuple of keyword names per accepted parameterization, empty when the family takes no parameters. |
Source code in src/quivers/dsl/family_schemas.py
family_parameter_names
¶
Return the canonical QVR keyword order for family.
| PARAMETER | DESCRIPTION |
|---|---|
family
|
The family name as written in source.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
tuple[str, ...] | None
|
The keyword names in canonical order, or None when no keyword
schema is declared for |