Skip to main content

Crate weavy

Crate weavy 

Source
Expand description

Shared lowered-program substrate for interpreters and copy-and-patch backends.

weavy stays format-agnostic: callers bring schema identities, parsers, and value models. The crate provides the shared carrier for lowered programs (flat programs, named blocks, and a small call-stack runner), plus the generic typed-memory descriptor/op vocabulary in mem. Native copy-and-patch backends can use the same program/block shape.

Modules§

mem
Shared typed-memory thunk vocabulary for lowered programs.

Structs§

Lowered
A root program plus named block programs.

Enums§

Control
Interpreter control returned by a caller’s op semantics.
RunError
Errors produced by run.

Traits§

Step
Caller-provided op semantics for run.

Functions§

run
Run a lowered program through caller-supplied op semantics.
run_program
Run a program with an explicit block table.

Type Aliases§

Program
A flat lowered program for an op vocabulary supplied by the caller.