<current state> <current symbol> <new symbol> <direction> <new state>
'.<current state>
and <new state>
, eg. 10, a, state1
. State labels are case-sensitive.<current symbol>
and <new symbol>
, or '_
' to represent blank (space). Symbols are case-sensitive.
;
', '*
', or whitespace as symbols.
<direction>
should be 'l
', 'r
' or 's
', denoting 'move left', 'move right' or 'stay in place', respectively. You can also use 'left
', '<
', 'right
', '>
', 'stay
', '=
', and '*
'.*
' can be used as a wildcard in <current state>
to supply default instructions for any state.*
' or 'else
' can be used as a wildcard in <current symbol>
to match any unspecified character.*
' or 'same
' can be used in <new symbol>
to mean 'no change'.*
' or 'same
' can be used in <new state>
to mean 'no change'.;
' is a comment and is ignored.accept
', 'reject
', or any state starting with 'halt
', eg. halt, halt-accept
.!
' can be used at the end of a line to set a breakpoint, eg 'q1 a b > q2 !
'. The machine will automatically pause after executing this line.*
' in the initial input.start
').