Skip to main content

Crate vihaco

Crate vihaco 

Source

Re-exports§

pub use vihaco_syntax as syntax;
pub use vihaco_runtime as runtime;
pub use chumsky;

Modules§

color
effect
frame
instruction
instruction_syntax
loader
machine
macros
metadata
module
observer
program
value

Macros§

component
show
show_instruction

Structs§

BytecodeFile
A parsed bytecode file.
BytecodeSectionView
A lightweight view into a parsed bytecode section.
CanonicalInstructionVariantSyntax
CompositeMetadata
ConstantId
ContextHandle
The public handle for a global context.
InstructionSugarVariantSyntax
NoContext
Marker context for SST files that do not carry global metadata.
ProgramImage
SectionPath
The fully resolved path for a parsed section.
SstFile
A parsed SST file.
SstSectionView
A lightweight view into a parsed SST section.

Enums§

Effects
OperandKind
SugarOperandKind
Type
Value

Constants§

FLAGS
MAGIC
VERSION

Traits§

BytecodeGlobalContext
A global context that can be decoded from bytecode.
BytecodeHeader
CanonicalInstructionSyntax
Component
Composite
EffectSink
FromBytes
FromText
GeneratedComponent
GetProgramInfo
GlobalContext
A global context that supports both bytecode and SST representations.
HasInstructionSet
The instruction types exposed by a device to its two execution layers.
InstructionSugarSyntax
LoadBytecodeSection
Allow a machine to load a bytecode section completely.
LoadOwnBytecodeSection
Allow a machine to load the bytecode data owned directly by its section.
LoadOwnSstSection
Allow a machine to load the SST data owned directly by its section.
LoadSstSection
Allow a machine to load an SST section completely.
Message
MessageMarker
Observe
Parse
A parser whose input is &'src str (char stream) and whose error type is Simple<char>.
Reset
SectionNameResolver
Resolve section-name indexes stored in bytecode files.
SstGlobalContext
A global context that can be parsed from SST text.
SstHeader
SurfaceInstruction
Marker for enums whose pattern-derived parser represents instruction syntax.
WriteBytecodeHeader

Functions§

decode_instruction_stream
expect_exactly_one_effect

Attribute Macros§

composite
dispatch
observe

Derive Macros§

Instruction
Derive the bytecode-instruction traits (OpCode, FromBytesWithOpcode, WriteBytes) for an instruction enum.
Message
MessageMarker
Parse