2019-09-05 00:20:47 +03:00
|
|
|
^- agent:mall
|
|
|
|
=| state=@
|
|
|
|
|_ bowl:mall
|
2019-09-04 22:48:36 +03:00
|
|
|
++ handle-init
|
2019-09-05 00:20:47 +03:00
|
|
|
`..handle-init
|
2019-09-04 22:48:36 +03:00
|
|
|
::
|
|
|
|
++ handle-prep
|
2019-09-05 00:20:47 +03:00
|
|
|
|= =old-state=vase
|
|
|
|
=/ old-state !<(@ old-state-vase)
|
|
|
|
?~ old-state
|
|
|
|
~& %prep-lost
|
|
|
|
`..handle-init
|
|
|
|
~& %prep-found
|
|
|
|
`..handle-init(state u.old-state)
|
2019-09-04 22:48:36 +03:00
|
|
|
::
|
|
|
|
++ handle-poke
|
2019-09-05 00:20:47 +03:00
|
|
|
|= in-poke-data=cage
|
|
|
|
~& >> 'ouchies!'
|
|
|
|
~& >>> in-poke-data
|
|
|
|
~& > state=state
|
|
|
|
=. state +(state)
|
|
|
|
`..handle-init
|
2019-09-04 22:48:36 +03:00
|
|
|
::
|
|
|
|
++ handle-peer
|
2019-09-05 00:20:47 +03:00
|
|
|
|= path
|
|
|
|
`..handle-init
|
2019-09-04 22:48:36 +03:00
|
|
|
::
|
|
|
|
++ handle-pull
|
2019-09-05 00:20:47 +03:00
|
|
|
|= path
|
|
|
|
`..handle-init
|
2019-09-04 22:48:36 +03:00
|
|
|
::
|
|
|
|
++ handle-peek
|
2019-09-05 00:20:47 +03:00
|
|
|
|= path
|
2019-09-04 22:48:36 +03:00
|
|
|
*(unit (unit cage))
|
|
|
|
::
|
|
|
|
++ handle-mall
|
2019-09-05 00:20:47 +03:00
|
|
|
|= [wire internal-gift:mall]
|
|
|
|
`..handle-init
|
2019-09-04 22:48:36 +03:00
|
|
|
::
|
|
|
|
++ handle-take
|
2019-09-05 00:20:47 +03:00
|
|
|
|= [wire vase]
|
|
|
|
`..handle-init
|
2019-09-04 22:48:36 +03:00
|
|
|
::
|
|
|
|
++ handle-lame
|
2019-09-05 00:20:47 +03:00
|
|
|
|= [term tang]
|
|
|
|
`..handle-init
|
|
|
|
::
|
|
|
|
++ handle-stay
|
|
|
|
!>(state)
|
2019-09-04 22:48:36 +03:00
|
|
|
--
|