2015-01-15 22:32:04 +03:00
|
|
|
::
|
2017-11-08 00:05:52 +03:00
|
|
|
:::: /lib/hall/hoon
|
2017-04-25 22:21:46 +03:00
|
|
|
::
|
2017-11-08 00:05:52 +03:00
|
|
|
/- hall
|
2016-11-17 04:42:58 +03:00
|
|
|
::
|
2015-01-15 22:32:04 +03:00
|
|
|
::::
|
|
|
|
::
|
2018-02-01 02:36:48 +03:00
|
|
|
=, ^hall
|
2016-12-07 06:13:33 +03:00
|
|
|
|_ bol/bowl:gall
|
2015-06-02 21:36:56 +03:00
|
|
|
::
|
2017-06-13 01:19:45 +03:00
|
|
|
::TODO add to zuse?
|
|
|
|
++ true-self
|
|
|
|
|= who/ship
|
2017-10-06 20:35:25 +03:00
|
|
|
?. ?=($earl (clan:title who)) who
|
|
|
|
(sein:title who)
|
2017-06-13 01:19:45 +03:00
|
|
|
::
|
2017-06-14 03:51:10 +03:00
|
|
|
++ above
|
|
|
|
|= who/ship
|
2017-10-06 20:35:25 +03:00
|
|
|
?: ?=($czar (clan:title who)) ~zod
|
|
|
|
(sein:title who)
|
2015-06-02 21:36:56 +03:00
|
|
|
::
|
2016-03-15 03:37:34 +03:00
|
|
|
++ said-url :: app url
|
2016-12-07 06:13:33 +03:00
|
|
|
|= url/purl:eyre
|
2016-03-15 04:02:59 +03:00
|
|
|
:^ ost.bol %poke /said-url
|
2017-11-08 00:05:52 +03:00
|
|
|
:+ [our.bol %hall] %hall-action
|
2017-04-14 01:46:15 +03:00
|
|
|
^- action
|
|
|
|
:+ %phrase
|
2017-11-01 20:35:06 +03:00
|
|
|
[[our.bol %inbox] ~ ~]
|
2017-11-06 19:21:50 +03:00
|
|
|
[%app dap.bol %lin | (crip (en-purl:html url))]~ :: XX
|
2016-03-15 03:37:34 +03:00
|
|
|
::
|
2015-06-02 02:25:22 +03:00
|
|
|
++ said :: app message
|
2017-11-01 21:05:38 +03:00
|
|
|
|= mes/(list tank)
|
2017-11-08 00:05:52 +03:00
|
|
|
:- %hall-action
|
2017-04-14 01:46:15 +03:00
|
|
|
^- action
|
2017-11-01 21:05:38 +03:00
|
|
|
:- %phrase
|
|
|
|
:- [[our.bol %inbox] ~ ~]
|
|
|
|
|- ^- (list speech)
|
2015-06-05 02:24:55 +03:00
|
|
|
?~ mes ~
|
2017-11-01 21:05:38 +03:00
|
|
|
:_ $(mes t.mes)
|
|
|
|
^- speech
|
2017-11-06 19:21:50 +03:00
|
|
|
[%app dap.bol %lin | (crip ~(ram re i.mes))]
|
2017-04-10 23:35:25 +03:00
|
|
|
::
|
|
|
|
++ uniq
|
2017-11-01 21:05:38 +03:00
|
|
|
^- {serial _eny.bol}
|
|
|
|
[(shaf %serial eny.bol) (shax eny.bol)]
|
2017-05-13 01:05:49 +03:00
|
|
|
::
|
2017-12-19 22:50:00 +03:00
|
|
|
::TODO add to zuse?
|
|
|
|
++ simple-wrap
|
|
|
|
|= {txt/tape wyd/@ud}
|
|
|
|
^- (list tape)
|
|
|
|
?~ txt ~
|
|
|
|
=+ ^- {end/@ud nex/?}
|
|
|
|
?: (lte (lent txt) wyd) [(lent txt) &]
|
|
|
|
=+ ace=(find " " (flop (scag +(wyd) `tape`txt)))
|
|
|
|
?~ ace [wyd |]
|
|
|
|
[(sub wyd u.ace) &]
|
|
|
|
:- (tufa (scag end `(list @)`txt))
|
|
|
|
$(txt (slag ?:(nex +(end) end) `tape`txt))
|
|
|
|
::
|
2017-12-11 06:56:58 +03:00
|
|
|
++ range-to-path
|
2018-05-25 01:39:56 +03:00
|
|
|
:: msg range to path
|
|
|
|
::
|
|
|
|
:: turns a range structure into a path used for
|
|
|
|
:: subscriptions.
|
2017-10-09 23:50:17 +03:00
|
|
|
::
|
|
|
|
|= ran/range
|
|
|
|
^- path
|
|
|
|
?~ ran ~
|
2018-03-07 03:13:20 +03:00
|
|
|
:- (place-to-knot hed.u.ran)
|
2017-10-09 23:50:17 +03:00
|
|
|
?~ tal.u.ran ~
|
2018-03-07 03:13:20 +03:00
|
|
|
[(place-to-knot u.tal.u.ran) ~]
|
|
|
|
::
|
|
|
|
++ place-to-knot
|
2018-05-25 01:39:56 +03:00
|
|
|
:: msg pointer to path component
|
|
|
|
::
|
|
|
|
:: turns a place structure into a knot for use in
|
|
|
|
:: subscription paths.
|
2018-03-07 03:13:20 +03:00
|
|
|
::
|
|
|
|
|= pla/place
|
|
|
|
^- knot
|
2018-04-12 20:34:58 +03:00
|
|
|
(scot -.pla +.pla)
|
2017-10-09 23:50:17 +03:00
|
|
|
::
|
2017-12-11 06:56:58 +03:00
|
|
|
++ path-to-range
|
2018-05-25 01:39:56 +03:00
|
|
|
:: path to msg range
|
|
|
|
::
|
|
|
|
:: turns the tail of a subscription path into a
|
|
|
|
:: range structure, skipping over non-range terms.
|
2017-10-09 23:50:17 +03:00
|
|
|
::
|
|
|
|
|= pax/path
|
|
|
|
^- range
|
|
|
|
?~ pax ~
|
2018-03-07 03:13:20 +03:00
|
|
|
=/ hes/(unit place) (rush i.pax placer)
|
2017-11-03 17:54:25 +03:00
|
|
|
:: skip past non-number parts of path.
|
2018-03-07 03:13:20 +03:00
|
|
|
?~ hes $(pax t.pax)
|
|
|
|
:+ ~ u.hes
|
2017-10-09 23:50:17 +03:00
|
|
|
?~ t.pax ~
|
2018-03-07 03:13:20 +03:00
|
|
|
(rush i.t.pax placer)
|
|
|
|
::
|
|
|
|
++ placer
|
2018-05-25 01:39:56 +03:00
|
|
|
:: parse a range place
|
2018-03-07 03:13:20 +03:00
|
|
|
;~ pose
|
|
|
|
(stag %ud dem:ag)
|
|
|
|
::
|
2018-04-25 21:54:36 +03:00
|
|
|
=- (stag %da (sear - ;~(pfix sig crub:so)))
|
2018-03-07 03:13:20 +03:00
|
|
|
|= a/dime
|
|
|
|
^- (unit @da)
|
|
|
|
?:(?=($da p.a) `q.a ~)
|
|
|
|
==
|
2017-10-09 23:50:17 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ change-glyphs :: ...
|
2017-05-13 01:05:49 +03:00
|
|
|
::
|
2017-10-19 03:05:53 +03:00
|
|
|
|= {gys/(jug char audience) bin/? gyf/char aud/audience}
|
2017-05-13 01:05:49 +03:00
|
|
|
^+ gys
|
|
|
|
:: simple bind.
|
2017-10-19 03:05:53 +03:00
|
|
|
?: bin (~(put ju gys) gyf aud)
|
2017-05-13 01:05:49 +03:00
|
|
|
:: unbind all of glyph.
|
2017-10-19 03:05:53 +03:00
|
|
|
?~ aud (~(del by gys) gyf)
|
2017-05-13 01:05:49 +03:00
|
|
|
:: unbind single.
|
2017-10-19 03:05:53 +03:00
|
|
|
(~(del ju gys) gyf aud)
|
2017-05-13 01:05:49 +03:00
|
|
|
::
|
2017-12-11 06:56:58 +03:00
|
|
|
++ change-nicks
|
2018-05-25 01:39:56 +03:00
|
|
|
:: change nick map
|
|
|
|
::
|
|
|
|
:: changes a nickname in a map, adding if it doesn't
|
|
|
|
:: yet exist, removing if the nickname is empty.
|
2017-05-13 01:05:49 +03:00
|
|
|
::
|
|
|
|
|= {nis/(map ship cord) who/ship nic/cord}
|
|
|
|
^+ nis
|
|
|
|
?: =(nic '')
|
|
|
|
(~(del by nis) who)
|
|
|
|
(~(put by nis) who nic)
|
|
|
|
::
|
2017-12-11 06:56:58 +03:00
|
|
|
++ change-config
|
2018-05-25 01:39:56 +03:00
|
|
|
:: applies a config diff to the given config.
|
2017-05-13 01:05:49 +03:00
|
|
|
::
|
|
|
|
|= {cof/config dif/diff-config}
|
|
|
|
^+ cof
|
|
|
|
?- -.dif
|
|
|
|
$full cof.dif
|
|
|
|
$caption cof(cap cap.dif)
|
|
|
|
$filter cof(fit fit.dif)
|
|
|
|
$remove cof
|
2018-02-14 18:54:51 +03:00
|
|
|
::
|
|
|
|
$usage
|
|
|
|
%= cof
|
|
|
|
tag
|
|
|
|
%. tas.dif
|
|
|
|
?: add.dif
|
|
|
|
~(uni in tag.cof)
|
|
|
|
~(dif in tag.cof)
|
|
|
|
==
|
2017-11-16 03:21:25 +03:00
|
|
|
::
|
2017-06-16 04:53:47 +03:00
|
|
|
$source
|
2017-05-13 01:05:49 +03:00
|
|
|
%= cof
|
2017-06-16 04:53:47 +03:00
|
|
|
src
|
2017-10-09 23:50:17 +03:00
|
|
|
%. src.dif
|
2017-05-13 01:05:49 +03:00
|
|
|
?: add.dif
|
2017-06-28 21:12:12 +03:00
|
|
|
~(put in src.cof)
|
|
|
|
~(del in src.cof)
|
2017-05-13 01:05:49 +03:00
|
|
|
==
|
2017-11-16 03:21:25 +03:00
|
|
|
::
|
2017-05-13 01:05:49 +03:00
|
|
|
$permit
|
|
|
|
%= cof
|
2017-11-01 15:30:49 +03:00
|
|
|
sis.con
|
2017-05-13 01:05:49 +03:00
|
|
|
%. sis.dif
|
|
|
|
?: add.dif
|
2017-11-01 15:30:49 +03:00
|
|
|
~(uni in sis.con.cof)
|
|
|
|
~(dif in sis.con.cof)
|
2017-05-13 01:05:49 +03:00
|
|
|
==
|
2017-11-16 03:21:25 +03:00
|
|
|
::
|
2017-05-13 01:05:49 +03:00
|
|
|
$secure
|
|
|
|
%= cof
|
|
|
|
sec.con
|
|
|
|
sec.dif
|
2017-11-16 03:21:25 +03:00
|
|
|
::
|
2017-11-01 15:30:49 +03:00
|
|
|
sis.con
|
2017-05-13 01:05:49 +03:00
|
|
|
?. .= ?=(?($white $green) sec.dif)
|
|
|
|
?=(?($white $green) sec.con.cof)
|
|
|
|
~
|
2017-11-01 15:30:49 +03:00
|
|
|
sis.con.cof
|
2017-05-13 01:05:49 +03:00
|
|
|
==
|
|
|
|
==
|
|
|
|
::
|
2017-12-11 06:56:58 +03:00
|
|
|
++ change-status
|
2018-05-25 01:39:56 +03:00
|
|
|
:: applies a status diff to the given status.
|
2017-05-13 01:05:49 +03:00
|
|
|
::
|
|
|
|
|= {sat/status dif/diff-status}
|
|
|
|
^+ sat
|
|
|
|
?- -.dif
|
|
|
|
$full sat.dif
|
|
|
|
$presence sat(pec pec.dif)
|
|
|
|
$remove sat
|
2017-11-16 03:21:25 +03:00
|
|
|
::
|
2017-05-13 01:05:49 +03:00
|
|
|
$human
|
|
|
|
%= sat
|
|
|
|
man
|
|
|
|
?- -.dif.dif
|
|
|
|
$full man.dif.dif
|
2017-06-28 02:45:56 +03:00
|
|
|
$true [han.man.sat tru.dif.dif]
|
|
|
|
$handle [han.dif.dif tru.man.sat]
|
2017-05-13 01:05:49 +03:00
|
|
|
==
|
|
|
|
==
|
|
|
|
==
|
2017-06-13 01:19:45 +03:00
|
|
|
::
|
2017-06-14 04:06:38 +03:00
|
|
|
::TODO annotate all!
|
2017-06-13 01:19:45 +03:00
|
|
|
++ depa :: de-pathing core
|
|
|
|
=> |% ++ grub * :: result
|
|
|
|
++ weir (list coin) :: parsed wire
|
|
|
|
++ fist $-(weir grub) :: reparser instance
|
|
|
|
--
|
|
|
|
|%
|
|
|
|
::
|
|
|
|
++ al
|
|
|
|
|* {hed/$-(coin *) tal/fist}
|
|
|
|
|= wir/weir ^+ [*hed *tal]
|
|
|
|
?~ wir !!
|
|
|
|
[(hed i.wir) (tal t.wir)]
|
|
|
|
::
|
|
|
|
++ at
|
|
|
|
|* typ/{@tas (pole @tas)}
|
|
|
|
=+ [i-typ t-typ]=typ
|
|
|
|
|= wer/weir
|
2017-12-11 06:56:58 +03:00
|
|
|
^- (tup:dray:wired i-typ t-typ) :: ie, (tup %p %tas ~) is {@p @tas}
|
2017-06-13 01:19:45 +03:00
|
|
|
?~ wer !!
|
|
|
|
?~ t-typ
|
|
|
|
?^ t.wer !!
|
|
|
|
((do i-typ) i.wer)
|
|
|
|
:- ((do i-typ) i.wer)
|
|
|
|
(^$(typ t-typ) t.wer)
|
|
|
|
::
|
|
|
|
++ mu :: true unit
|
|
|
|
|* wit/fist
|
|
|
|
|= wer/weir
|
|
|
|
?~(wer ~ (some (wit wer)))
|
|
|
|
::
|
|
|
|
++ af :: object as frond
|
|
|
|
|* buk/(pole {cord fist})
|
|
|
|
|= wer/weir
|
|
|
|
?> ?=({{$$ $tas @tas} *} wer)
|
|
|
|
?~ buk !!
|
|
|
|
=+ [[tag wit] t-buk]=buk
|
|
|
|
?: =(tag q.p.i.wer)
|
|
|
|
[tag ~|(tag+`@tas`tag (wit t.wer))]
|
2017-10-06 14:29:15 +03:00
|
|
|
?~ t-buk ~|(bad-tag+`@tas`q.p.i.wer !!)
|
2017-06-13 01:19:45 +03:00
|
|
|
(^$(buk t-buk) wer)
|
|
|
|
::
|
|
|
|
++ or
|
2018-02-01 02:36:48 +03:00
|
|
|
=+ typ=$:|-($@(@tas {@tas $}))
|
2018-05-20 23:23:01 +03:00
|
|
|
|@ +- $
|
2018-02-01 02:36:48 +03:00
|
|
|
|= con/coin
|
|
|
|
::^- _(snag *@ (turn (limo typ) |*(a/@tas [a (odo:raid:wired a)])))
|
|
|
|
?> ?=($$ -.con)
|
|
|
|
=/ i-typ ?@(typ typ -.typ)
|
|
|
|
?: =(i-typ p.p.con)
|
|
|
|
:- i-typ
|
|
|
|
^- (odo:raid:wired i-typ)
|
|
|
|
q.p.con
|
|
|
|
?@ typ ~|(%bad-odor !!)
|
|
|
|
(^$(typ +.typ) con)
|
|
|
|
--
|
2017-06-13 01:19:45 +03:00
|
|
|
::
|
|
|
|
++ do
|
|
|
|
|* typ/@tas
|
2017-06-14 04:06:38 +03:00
|
|
|
=/ typecheck `@tas`typ
|
2017-06-13 01:19:45 +03:00
|
|
|
|= con/coin
|
2017-10-06 20:35:25 +03:00
|
|
|
^- (odo:raid:wired typ)
|
2017-06-13 01:19:45 +03:00
|
|
|
?. ?=($$ -.con) ~|(%not-dime !!)
|
|
|
|
?. =(typ p.p.con) ~|(bad-odor+`@tas`p.p.con !!)
|
|
|
|
q.p.con
|
|
|
|
::
|
|
|
|
++ ul :: null
|
|
|
|
|=(wer/weir ?~(wer ~ !!))
|
|
|
|
::
|
|
|
|
++ un
|
|
|
|
|* wit/$-(coin *)
|
2017-06-14 04:06:38 +03:00
|
|
|
|= wer/weir ^+ *wit
|
|
|
|
?~ wer !!
|
|
|
|
?^ t.wer !!
|
|
|
|
(wit i.wer)
|
2017-06-13 01:19:45 +03:00
|
|
|
--
|
2015-01-15 22:32:04 +03:00
|
|
|
--
|