Crates.io | gsm |
lib.rs | gsm |
version | 1.3.0 |
source | src |
created_at | 2020-02-04 22:09:15.301085 |
updated_at | 2020-06-08 19:14:28.460322 |
description | A very simple generic stack machine crate |
homepage | |
repository | https://github.com/dhuseby/gsm |
max_upload_size | |
id | 204983 |
size | 58,452 |
This crates implements a generic stack machine that will execute any client
defined set of instructions and track state for you. All classes are generic on
a type that implements the Instruction
and Clone
traits. The Machine takes
a Script made up of objects that implement those traits and when executing, the
Machine calls the execute
function for each Instruction
so that the Machine
state can change and other side effects may happen.
The source code file test/simple.rs
demonstrates how a client would implement
Instruction
objects for use in scripts.