Expand description
§rstm
rstm is a Rust library dedicated to the construction and execution of Turing Machines.
The crate is designed to be flexible and easy to use while preserving the abstract nature
of the models.
Modules§
- Actors
- Memory (mem)
Macros§
- [
ruleset!] is a macro that simplifies the creation of a vector ofRules.
Structs§
- An Actor is an implementation of a Turing machine with a moving head (TMH).
- An iterator over the variants of Direction
- The Head is formally defined to be a 2-tuple consisting of a state / symbol pair.
- State is a generalized state implementation, representing the state of a system or object.
- The Tail is a 3-tuple containing the direction, state, and symbol that an actor is instructed to execute whenever it assumes the head configuration assigned to the tail.
Enums§
- Direction enumerates the various directions a head can move, namely: left, right, and stay.
Traits§
- Alphabet describes a finite set of symbols used to construct a formal language.
- The AsDirection trait provides a convience method for converting a type into a Direction.
- Decrement is a trait that provides a common interface for decrementing values; i.e., subtracting one from a value.
- DecrementAssign is a trait that provides a common interface for decrementing values in place.
- Increment is a trait that provides a common interface for incrementing values; i.e., adding one to a value.
- IncrementAssign is a trait that provides a common interface for incrementing values in place.
- Incremental is a trait that provides a common interface for incrementing and decrementing values.
- The IntoDirection trait provides a convience method for converting a type into a Direction.