Instruction
__construct
(string $initial_state, int $prereq_symbol, char $print, char $move, string $next)
-
string
$initial_state: The name of the Instruction
-
int
$prereq_symbol: The prerequisite read symbol
-
char
$print: The symbol to print next
-
char
$move: The action to perform
-
string
$next: The name of the next Instruction to run
Returns the Instruction's name
string
getInitialState
()
Return the next required Head move
char
getNextMove
()
Return the next State name
string
getNextState
()
Returns the Instruction's prerequisite
char
getPrerequisite
()
Return the next symbol to print
char
getSymbolToWrite
()