hexicon-vm 0.2.0

The Hexicon virtual machine: runs the games Hexicon builds
Documentation
//! The Hexicon virtual machine.
//!
//! This crate runs the games Hexicon builds (`.hxg` files). Their layout
//! and instruction set are the T3 VM's, and it follows the T3 VM
//! specification, and where that is silent, the behavior of the
//! reference interpreter.
//!
//! The VM does no input or output of its own. Everything it needs from
//! the outside world comes through a [`hexicon_host::Host`].

/// Mark the rest of the block as work of a kind, for the profiler.
#[cfg(feature = "profile")]
macro_rules! prof_scope {
    ($tag:expr) => {
        let _prof_guard = crate::prof::scope($tag);
    };
}
/// Nothing, without the profiler.
#[cfg(not(feature = "profile"))]
macro_rules! prof_scope {
    ($tag:expr) => {};
}

mod bif;
mod pane;
pub(crate) use hexicon_decimal as decimal;
mod bytearray;
mod call;
mod casefold;
mod charset;
mod chartype;
mod compiled_code;
mod console;
mod date;
mod decimal_math;
mod decimal_obj;
mod dict;
mod error;
mod file;
mod frameref;
mod gc;
mod gram;
mod hash;
mod heap;
pub mod identity;
mod interp;
mod io;
mod list;
mod load;
mod map;
mod meta;
mod methods;
mod object;
mod ops;
mod pack;
#[cfg(feature = "profile")]
pub mod prof;
mod program_object;
mod props;
mod rebuild;
mod reflect;
mod regex;
mod rng;
mod save;
mod specials;
mod sprintf;
mod strcomp;
mod string;
mod string_builder;
mod trace;
mod tz;
mod value;
mod vector;
mod vm;

pub use charset::decode_text;
pub use error::{ErrParam, RuntimeError, VmError, VmResult, code};
pub use rebuild::RebuiltImage;
pub use value::{ObjId, PropId, Value};
pub use vm::{RunState, Vm};

#[cfg(test)]
mod tests;