Expand description
Schema for instructions.toml.
Structs§
- Control
Frame - Control construct pushed on the control stack (
block/loop/if). - Immediate
- Immediate operand in the instruction encoding.
- Instruction
- A single WebAssembly instruction / opcode entry.
- Instructions
Table - Root document:
[[instructions]]array-of-tables. - Stack
Type - Stack signature (
stack-type.from/stack-type.to). - Type
Expr - Symbolic or concrete type expression in a stack slot descriptor.
Enums§
- Control
Kind - WebAssembly control instruction kind.
- Label
Target - Branch target for a control frame: break (
end) or continue (start). - Opcode
- Opcode as written in TOML: an integer (
0x6A) or a two-element array ([0xFC, 17]). - Stack
Entry - One stack slot descriptor in
stack-type.from/stack-type.to. - Validate
Error - Validation error for stack-type invariants not expressible in the type system.
Constants§
- INSTRUCTIONS_
TOML - Raw TOML embedded at compile time from
instructions.tomlin the package root.
Functions§
- instructions
- Lazily parsed embedded instruction table.
- parse_
instructions_ toml - Parse TOML source into an
InstructionsTable. - validate_
instructions_ table - Validate every stack entry in the table.
- validate_
stack_ entry - Check control-frame label invariants (
loop→Start,block/if→End).