mlem/
types.rs

1//! Types to make definitons more expressive.
2
3/// Represents a machine word - an atomic int, a pointer, etc.
4/// Words are u64s; signed math has to do conversion.
5pub type Word = u64;
6
7/// A JumpLocation is a place on the instruction tape, which is a vector,
8/// so it should be indexable.
9pub type JumpLocation = usize;
10
11use instructions::Instruction;
12/// Represents a program; a list of instructions, to be executed in order.
13pub type Program = Vec<Instruction>;
14