Skip to main content

Crate zpl_toolchain_spec_tables

Crate zpl_toolchain_spec_tables 

Source
Expand description

ZPL command specification tables.

Defines the data structures for ZPL command metadata, including command entries, argument schemas, constraints, and an opcode trie for fast command recognition. These tables are deserialized from the generated JSON spec and consumed by the parser and validator.

Structs§

Arg
Rich metadata for a single command argument.
CommandEntry
Metadata for a single ZPL command (or group of aliased commands).
Composite
Composite parameter group — combines multiple args into a single path-like parameter in the signature (e.g., d:o.x for ^XG).
ConditionalRange
A numeric range that applies only when a predicate is satisfied.
ConditionalRounding
A rounding policy that applies only when a predicate is satisfied.
Constraint
A command-level validation constraint.
ConstraintDefaults
Default values for command-level constraints.
Effects
Describes which cross-command state a command sets.
Example
An executable/documentation example for a command.
FieldDataRules
Validation rules for field data content associated with a barcode command.
OpcodeTrieNode
A node in the opcode trie used for longest-match command recognition.
ParserTables
Top-level container for all ZPL command spec tables.
Placement
Placement rules that refine command location semantics.
ProfileConstraint
Data-driven profile constraint on an arg value. Replaces hardcoded checks like “^PW <= profile.page.width_dots”.
RoundingPolicy
Policy for rounding or quantizing a numeric argument value.
Signature
Describes the parameter signature of a ZPL command.
SplitRule
Rule for splitting a parameter into multiple parts by character count.
StructuralRuleIndex
Generated structural rule pre-index keyed by kind, trigger, and effect.

Enums§

ArgPresence
Declares how firmware interprets argument presence/emptiness.
ArgUnion
A command argument definition — either a single Arg or a oneOf union.
CommandCategory
Functional category for a command.
CommandScope
Command scope — determines the lifecycle boundary of the command’s effect.
ComparisonOp
Comparison operators for profile constraints.
ConstraintKind
Constraint kinds for command-level constraints.
ConstraintScope
Evaluation scope for command-level constraints.
ConstraintSeverity
Severity level for constraint diagnostics.
EnumValue
An allowed enum value — either a plain string or a rich object with gates.
FontReferenceAction
Action variant for font-reference structural rules.
MediaModesTarget
Target variant for media-modes structural rules.
NoteAudience
Audience/surface for note diagnostics.
Plane
Command plane — determines where in the ZPL hierarchy the command operates.
PositionBoundsAction
Action variant for position-bounds structural rules.
ResourceKind
Resource family for resourceRef arguments.
RoundingMode
Rounding modes for numeric arguments.
SpacingPolicy
Opcode spacing policy between command code and first argument.
Stability
Stability level for a command.
StructuralRule
Schema-declared structural validation rule payload.
StructuralRuleKind
Schema-declared structural validator rule kinds.
StructuralTrigger
Trigger flags used to pre-index structural rule applicability.

Constants§

TABLE_FORMAT_VERSION
Current format version for the spec table JSON schema.