Expand description
The Workshop IR model.
Workshop IR models the lower-level workshop program structure: variables with indexes, subroutines with indexes, and rules with events, conditions, actions, and values. It is locale-independent (canonical catalog ids only, never localized spellings) and protocol-agnostic.
Name policy: call/value name fields keep the canonical catalog ids
(countOf, wait, createBeamEffect); mapping those to localized
Workshop presentation spellings is an emission concern.
Extracted from the Wright-authored wright-ir crate (the wir,
settings, and source modules); see
docs/provenance.md.
Modules§
- error
- Structured IR errors.
Structs§
- Census
Capability - IfBranch
- One condition/body pair of an
Ifaction. - Program
- The Workshop IR program: tables and arenas produced by lowering.
- Rule
- A workshop rule.
- Value
Node - A workshop value (expression) node with its source span.
- Workshop
Subroutine - A workshop subroutine with its assigned index.
- Workshop
Variable - A workshop variable (global or player) with its assigned index.
Enums§
- Action
- A workshop action.
- Census
Capability Kind - The WIR-owned capability surface used by the canonical census. Providers do not contribute source-language inventories to this registry.
- Event
- A workshop event.
- Event
Target - The player filter attached to a player-scoped Workshop event.
- Event
Team - The team filter attached to a player-scoped Workshop event.
- Modify
Op - The modify operators of the v0.1 surface.
- Player
Event Kind - A non-ongoing player event identity.
- Value
- A workshop value (expression).
Constants§
Type Aliases§
- Action
Id - A typed ID referencing an
Actionin the action arena. - Global
VarId - A typed ID referencing a
WorkshopVariablein the global table. - Player
VarId - A typed ID referencing a
WorkshopVariablein the player table. - RuleId
- A typed ID referencing a
Rule. - Subroutine
Id - A typed ID referencing a
WorkshopSubroutine. - ValueId
- A typed ID referencing a
ValueNodein the value arena.