Crate calx_vm

Source
Expand description

Calx VM is a toy VM for learning WebAssembly. It is a stack machine, and it is dynamically typed. Being an experiment, for Calcit project.

Structs§

CalxFunc
CalxVM
Virtual Machine for Calx code is evaluated in a several steps:

Enums§

Calx
Simplied from Calcit, but trying to be basic and mutable
CalxInstr
learning from WASM but for dynamic data
CalxSyntax
learning from WASM but for dynamic data
CalxType
syntax like (i64 -> i64) can be used to types of functions and blocks

Constants§

CALX_INSTR_EDITION
TODO not sure whether bincode remains compatible after new instruction added use string for some semantics

Functions§

extract_nested
rather stupid function to extract nested calls before current call TODO better have some tests
log_calx_value
parse_function
parses

Type Aliases§

CalxImportsDict