Created
March 28, 2023 15:43
-
-
Save belisarius222/4224f4f25c90e3d14d7821a708b02c79 to your computer and use it in GitHub Desktop.
example app for userspace scry bindings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/+ default-agent, verb, dbug | |
:: | |
|% | |
+$ poke | |
$% [%grow =case =spur =noun] | |
[%tomb =case =spur] | |
[%cull =case =spur] | |
== | |
-- | |
:: | |
%+ verb & | |
%- agent:dbug | |
^- agent:gall | |
|_ =bowl:gall | |
+* this . | |
def ~(. (default-agent this %|) bowl) | |
++ on-init on-init:def | |
++ on-load on-load:def | |
++ on-save on-save:def | |
++ on-watch on-watch:def | |
++ on-poke | |
|= [=mark =vase] | |
^- (quip card:agent:gall _this) | |
:_ this | |
=+ !<(=poke vase) | |
?- -.poke | |
%grow [%pass /grow %grow [case spur noun]:poke]~ | |
%tomb [%pass /tomb %tomb [case spur]:poke]~ | |
%cull [%pass /cull %cull [case spur]:poke]~ | |
== | |
:: | |
++ on-arvo on-arvo:def | |
++ on-peek on-peek:def | |
++ on-leave on-leave:def | |
++ on-agent on-agent:def | |
++ on-fail on-fail:def | |
-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment