urbit/main/app/grep/core.hook

65 lines
1.2 KiB
Plaintext
Raw Normal View History

2014-09-27 05:01:17 +04:00
|%
++ sign
$% $: %g
$% [%nice ~]
2014-10-08 03:05:44 +04:00
$: %rush
$% [%txt p=cord]
[%tang p=(list tank)]
2014-09-27 05:01:17 +04:00
== == ==
2014-10-08 03:05:44 +04:00
== ==
2014-09-27 05:01:17 +04:00
--
::
!:
|_ [hid=hide arg=cord]
++ poke-grep-args
|= [ost=bone you=ship arg=cord ~]
=. ^arg arg
:_ +>.$
2014-10-08 03:05:44 +04:00
~& [%grep-subscribing-to /in/[-.imp.hid]]
2014-09-27 05:01:17 +04:00
:~ [ost %pass / %g %show [our.hid +.imp.hid] you /in/[-.imp.hid]]
==
2014-10-08 03:05:44 +04:00
++ peer |=(* `+>)
2014-09-27 05:01:17 +04:00
++ pour
2014-10-08 03:12:14 +04:00
|= [ost=bone pax=path sih=*]
=+ sih=;;(sign sih)
2014-10-10 02:57:24 +04:00
::~& grep-por/[pax sih]
2014-09-27 05:01:17 +04:00
?^ pax `+>.$
:_ +>.$
2014-10-08 03:51:49 +04:00
?- &2.sih
2014-10-01 04:29:32 +04:00
%nice
2014-09-27 05:01:17 +04:00
[ost %give %nice ~]~
%rush
2014-11-01 03:53:11 +03:00
%+ weld (spam %rush %prompt 'searching for {<arg>}...')
2014-10-08 03:12:14 +04:00
%- spam
2014-10-08 03:51:49 +04:00
?- &3.sih
%txt
?. (match (trip p.sih)) [%rush %tang ~]
2014-10-08 03:12:14 +04:00
+.sih
2014-10-08 03:51:49 +04:00
%tang
=< [%rush %tang .]
%+ murn p.sih
|= a=tank
^- (unit tank)
?- -.a
%leaf
?.((match p.a) ~ `a)
?(%palm %rose)
=. q.a (murn q.a ..$)
?~ q.a ~
(some a)
==
== ==
++ match
|= a=tape
=+ tag=(trip arg)
?: =(tag (scag (lent tag) a))
&
?~ a |
$(a t.a)
2014-10-08 03:12:14 +04:00
++ spam
|* git=*
%+ turn
(~(tap in (~(get ju pus.hid) /out)))
|=(a=bone [a %give git])
2014-09-27 05:01:17 +04:00
--