urbit/pkg/arvo/lib/chat/eval.hoon

23 lines
538 B
Plaintext
Raw Normal View History

2019-10-08 21:54:02 +03:00
|%
++ eval
|= [=bowl:gall =hoon]
^- (list tank)
=/ fowl=[our=@p now=@da eny=@uvJ]
2019-10-08 21:54:02 +03:00
:+ our.bowl
now.bowl
(shaz (cat 3 (mix [now eny]:bowl) %eny))
::
=/ subject [fowl ..zuse]
=/ minted=(each [=type =nock] (list tank))
%- mule |.
(~(mint ut -:!>(subject)) %noun hoon)
?: ?=(%| -.minted) p.minted
=/ =toon
(mock [subject nock.p.minted] |=(^ ~))
?- -.toon
%0 [(sell type.p.minted p.toon) ~]
%1 [leaf+"scries unsupported in chat eval" ~]
%2 [leaf+"crash!" p.toon]
==
--