Documentation
¶
Index ¶
Constants ¶
View Source
const ( MoveLeft = iota //0 MoveRight = iota //1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TM ¶
type TM struct {
Input *Tape
States map[string]bool
FinalStates map[string]bool
Inputs map[string]bool
Configs map[ConfigIn]ConfigOut
CurrentState string
}
func (*TM) ExportTape ¶
func (*TM) InputConfig ¶
func (t *TM) InputConfig(srcState string, input string, modifiedVal string, dstState string, tapeMove int)
Input config InputConfig parameter as follow: - SourceState, - Input - Modified Value - DestinationState - Tape Head Move Direction
func (*TM) InputState ¶
Input State and declare if it is final state
Click to show internal directories.
Click to hide internal directories.