new accessors

db4
Doug Coleman 2008-08-30 21:22:29 -05:00
parent 98c2548fa3
commit 754d68fb95
1 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
IN: turing
USING: arrays assocs io kernel math namespaces
prettyprint sequences strings vectors words ;
prettyprint sequences strings vectors words accessors ;
IN: turing
! A turing machine simulator.
@ -55,9 +55,9 @@ SYMBOL: tape
: turing-step ( -- )
#! Do one step of the turing machine.
next-state
dup state-sym set-sym
dup state-dir position [ + ] change
state-next state set ;
dup sym>> set-sym
dup dir>> position [ + ] change
next>> state set ;
: c ( -- )
#! Print current turing machine state.