gsm

Crates.iogsm
lib.rsgsm
version1.3.0
sourcesrc
created_at2020-02-04 22:09:15.301085
updated_at2020-06-08 19:14:28.460322
descriptionA very simple generic stack machine crate
homepage
repositoryhttps://github.com/dhuseby/gsm
max_upload_size
id204983
size58,452
Dave Huseby (dhuseby)

documentation

README

Generic Stack Machine

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.

Commit count: 14

cargo fmt