remove >r r>
parent
25ef292d60
commit
fcb761d257
|
@ -21,14 +21,14 @@ M: missing-state error.
|
||||||
! quot is ( state string -- output-string )
|
! quot is ( state string -- output-string )
|
||||||
[ missing-state ] <array> dup
|
[ missing-state ] <array> dup
|
||||||
[
|
[
|
||||||
[ >r dup [ data>> ] [ place>> ] bi r> ] %
|
[ [ dup [ data>> ] [ place>> ] bi ] dip ] %
|
||||||
[ swapd bounds-check dispatch ] curry ,
|
[ swapd bounds-check dispatch ] curry ,
|
||||||
[ each pick (>>place) swap (>>date) ] %
|
[ each pick (>>place) swap (>>date) ] %
|
||||||
] [ ] make [ over make ] curry ;
|
] [ ] make [ over make ] curry ;
|
||||||
|
|
||||||
: define-machine ( word state-class -- )
|
: define-machine ( word state-class -- )
|
||||||
execute make-machine
|
execute make-machine
|
||||||
>r over r> define
|
[ over ] dip define
|
||||||
"state-table" set-word-prop ;
|
"state-table" set-word-prop ;
|
||||||
|
|
||||||
: MACHINE:
|
: MACHINE:
|
||||||
|
|
Loading…
Reference in New Issue