Skip to content

Instantly share code, notes, and snippets.

@belisarius222
Created March 28, 2023 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save belisarius222/4224f4f25c90e3d14d7821a708b02c79 to your computer and use it in GitHub Desktop.
Save belisarius222/4224f4f25c90e3d14d7821a708b02c79 to your computer and use it in GitHub Desktop.
example app for userspace scry bindings
/+ 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