mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 10:02:32 +03:00
Rename ++twig to ++hoon.
This commit is contained in:
parent
c7e73c22f9
commit
bd17e5ece5
@ -41,7 +41,7 @@
|
||||
r/purl:eyre
|
||||
==
|
||||
{$poke p/goal} :: poke app
|
||||
{$show p/?($0 $1 $2 $3)} :: print val+type+twig
|
||||
{$show p/?($0 $1 $2 $3)} :: print val+type+hoon
|
||||
{$verb p/term} :: store variable
|
||||
{$help p/(list term)} :: look up help
|
||||
== ::
|
||||
@ -53,10 +53,10 @@
|
||||
$% {$ur p/(unit knot) q/purl:eyre} :: http GET request
|
||||
{$ge p/dojo-model} :: generator
|
||||
{$dv p/path} :: core from source
|
||||
{$ex p/twig} :: hoon expression
|
||||
{$ex p/hoon} :: hoon expression
|
||||
{$sa p/mark} :: example mark value
|
||||
{$as p/mark q/dojo-source} :: simple transmute
|
||||
{$do p/twig q/dojo-source} :: gate apply
|
||||
{$do p/hoon q/dojo-source} :: gate apply
|
||||
{$tu p/(list dojo-source)} :: tuple
|
||||
== ::
|
||||
++ dojo-model :: data construction
|
||||
@ -201,22 +201,22 @@
|
||||
++ dp-hooves :: hoof list
|
||||
:(stag 0 %ex %clsg (most ;~(plug com gaw) dp-hoof))
|
||||
::
|
||||
++ dp-hoof :: ++ford-hoof twig
|
||||
++ dp-hoof :: ++ford-hoof hoon
|
||||
;~ plug
|
||||
:(stag %sand %f ;~(pose (cold %| tar) (easy %&)))
|
||||
:(stag %sand %tas sym)
|
||||
%- dp-twig-punt
|
||||
%- dp-hoon-punt
|
||||
;~ (glue fas)
|
||||
;~(pfix fas (sear dp-case-twig nuck:so))
|
||||
;~(pfix fas (sear dp-case-hoon nuck:so))
|
||||
(stag %sand ;~(plug (cold %p sig) fed:ag))
|
||||
==
|
||||
==
|
||||
::
|
||||
++ dp-twig-punt :: twig of unit
|
||||
++ dp-hoon-punt :: hoon of unit
|
||||
|*(a/rule ;~(pose (stag [%bust %null] a) (easy [%bust %null])))
|
||||
::
|
||||
++ dp-case-twig
|
||||
|= a/coin ^- (unit twig)
|
||||
++ dp-case-hoon
|
||||
|= a/coin ^- (unit hoon)
|
||||
?. ?=({$~ case} a) ~
|
||||
%+ some
|
||||
[%rock %tas p.p.a]
|
||||
@ -229,7 +229,7 @@
|
||||
;~(plug (cold %ur lus) dp-iden-url)
|
||||
;~(plug (cold %ge lus) dp-model)
|
||||
;~(plug (cold %as pam) sym ;~(pfix ace dp-source))
|
||||
;~(plug (cold %do cab) dp-twig ;~(pfix ace dp-source))
|
||||
;~(plug (cold %do cab) dp-hoon ;~(pfix ace dp-source))
|
||||
dp-value
|
||||
==
|
||||
::
|
||||
@ -256,8 +256,8 @@
|
||||
++ dp-model ;~(plug dp-server dp-config) :: ++dojo-model
|
||||
++ dp-path (en-beam he-beam) :: ++path
|
||||
++ dp-server (stag 0 (most fas sym)) :: ++dojo-server
|
||||
++ dp-twig tall:(vang | dp-path) :: ++twig
|
||||
++ dp-rood :: 'dir' twig
|
||||
++ dp-hoon tall:(vang | dp-path) :: ++hoon
|
||||
++ dp-rood :: 'dir' hoon
|
||||
=> (vang | (en-beam dir))
|
||||
;~ pose
|
||||
rood
|
||||
@ -272,7 +272,7 @@
|
||||
++ dp-value :: ++dojo-source
|
||||
;~ pose
|
||||
(stag %sa ;~(pfix tar pam sym))
|
||||
(stag %ex dp-twig)
|
||||
(stag %ex dp-hoon)
|
||||
(stag %tu (ifix [sel ser] (most ace dp-source)))
|
||||
==
|
||||
::
|
||||
@ -1122,7 +1122,7 @@
|
||||
{$cube * _$}
|
||||
{$face {what $@(term tune)} _$}
|
||||
{$fork (set _$)}
|
||||
{$hold _$ twig}
|
||||
{$hold _$ hoon}
|
||||
==
|
||||
wain :: "<|core|>"
|
||||
$?($noun $void)
|
||||
@ -1137,13 +1137,13 @@
|
||||
==
|
||||
::
|
||||
++ dy-shown
|
||||
$? twig
|
||||
$? hoon
|
||||
$^ {dy-shown dy-shown}
|
||||
$% {$ur (unit knot) purl:eyre}
|
||||
{$dv path}
|
||||
{$sa mark}
|
||||
{$as mark dy-shown}
|
||||
{$do twig dy-shown}
|
||||
{$do hoon dy-shown}
|
||||
{$ge path (list dy-shown) (map term (unit dy-shown))}
|
||||
==
|
||||
==
|
||||
@ -1156,7 +1156,7 @@
|
||||
?- -.bil
|
||||
$?($ur $dv $sa) bil
|
||||
$ex ?. ?=({$cltr *} p.bil) p.bil
|
||||
|- ^- twig
|
||||
|- ^- hoon
|
||||
?~ p.p.bil !!
|
||||
?~ t.p.p.bil i.p.p.bil
|
||||
[i.p.p.bil $(p.p.bil t.p.p.bil)]
|
||||
@ -1230,7 +1230,7 @@
|
||||
%- dy-silk-vase
|
||||
?~(b !>([~ ~]) (dy-vase p.u.b))
|
||||
::
|
||||
++ dy-twig-head :: dynamic state
|
||||
++ dy-hoon-head :: dynamic state
|
||||
:: todo: how do i separate the toplevel 'dojo state' comment?
|
||||
:> dojo state
|
||||
:>
|
||||
@ -1286,7 +1286,7 @@
|
||||
(dy-meal (slot 7 vax))
|
||||
::
|
||||
$|
|
||||
=> .(vax (slap vax !,(*twig ?>(?=($| -) .)))) :: XX working spec #72
|
||||
=> .(vax (slap vax !,(*hoon ?>(?=($| -) .)))) :: XX working spec #72
|
||||
=+ typ={$| (unit knot) hiss:eyre *}
|
||||
=+ [~ usr hiz ~]=((dy-cast typ !>(*typ)) vax)
|
||||
=. ..dy (he-diff %tan leaf+"< {(en-purl:html p.hiz)}" ~)
|
||||
@ -1333,14 +1333,14 @@
|
||||
(slop hed $(p.bil t.p.bil))
|
||||
==
|
||||
::
|
||||
++ dy-twig-mark :: XX architect
|
||||
++ dy-hoon-mark :: XX architect
|
||||
=+ ^= ope
|
||||
|= gen/twig ^- twig
|
||||
|= gen/hoon ^- hoon
|
||||
?: ?=(?($sggl $sggr) -.gen)
|
||||
$(gen q.gen)
|
||||
=+ ~(open ap gen)
|
||||
?.(=(gen -) $(gen -) gen)
|
||||
|= gen/twig ^- (unit mark)
|
||||
|= gen/hoon ^- (unit mark)
|
||||
=. gen (ope gen)
|
||||
?: ?=({$cnts {@ $~} $~} gen)
|
||||
(bind (~(get by var) i.p.gen) head)
|
||||
@ -1361,12 +1361,12 @@
|
||||
==
|
||||
::
|
||||
++ dy-mare :: build expression
|
||||
|= gen/twig
|
||||
|= gen/hoon
|
||||
^- silk:ford
|
||||
=+ too=(dy-twig-mark gen)
|
||||
=+ too=(dy-hoon-mark gen)
|
||||
=- ?~(too - [%cast u.too -])
|
||||
:+ %ride gen
|
||||
:- [%$ dy-twig-head]
|
||||
:- [%$ dy-hoon-head]
|
||||
[%plan he-beam blob+** [zuse sur lib ~ ~]]
|
||||
::
|
||||
++ dy-step :: advance project
|
||||
|
@ -110,7 +110,7 @@
|
||||
{$join p/where} ::
|
||||
{$leave p/where} ::
|
||||
{$say p/(list speech)} ::
|
||||
{$eval p/cord q/twig} ::
|
||||
{$eval p/cord q/hoon} ::
|
||||
{$invite p/knot q/(list partner)} :: whitelist add
|
||||
{$banish p/knot q/(list partner)} :: blacklist add
|
||||
{$block p/knot q/(list partner)} :: blacklist add
|
||||
@ -203,7 +203,7 @@
|
||||
++ sh-scad :: command parser
|
||||
=< work
|
||||
|%
|
||||
++ expr :: [cord twig]
|
||||
++ expr :: [cord hoon]
|
||||
|= tub/nail %. tub
|
||||
%+ stag (crip q.tub)
|
||||
wide:(vang & [&1:% &2:% (scot %da now.hid) |3:%])
|
||||
@ -968,7 +968,7 @@
|
||||
|= cod/command
|
||||
%_(+> coz [cod coz])
|
||||
::
|
||||
++ sh-twig-head ^- vase :: eval data
|
||||
++ sh-hoon-head ^- vase :: eval data
|
||||
!>(`{our/@p now/@da eny/@uvI}`[our.hid now.hid (shas %eny eny.hid)])
|
||||
::
|
||||
++ sh-work :: do work
|
||||
@ -1211,8 +1211,8 @@
|
||||
..sh-work
|
||||
::
|
||||
++ eval :: run
|
||||
|= {txt/cord exe/twig}
|
||||
=> |.([(sell (slap (slop sh-twig-head seed) exe))]~)
|
||||
|= {txt/cord exe/hoon}
|
||||
=> |.([(sell (slap (slop sh-hoon-head seed) exe))]~)
|
||||
=+ tan=p:(mule .)
|
||||
(say [%fat tank+tan exp+txt] ~)
|
||||
::
|
||||
|
728
sys/hoon.hoon
728
sys/hoon.hoon
File diff suppressed because it is too large
Load Diff
@ -72,8 +72,8 @@
|
||||
{$boil p/calm q/(trel coin beam beam) r/vase} :: execute
|
||||
{$path p/calm q/beam r/(unit beam)} :: -to/ transformation
|
||||
{$slit p/calm q/{p/type q/type} r/type} :: slam type
|
||||
{$slim p/calm q/{p/type q/twig} r/(pair type nock)}:: mint
|
||||
{$slap p/calm q/{p/vase q/twig} r/vase} :: compute
|
||||
{$slim p/calm q/{p/type q/hoon} r/(pair type nock)}:: mint
|
||||
{$slap p/calm q/{p/vase q/hoon} r/vase} :: compute
|
||||
{$slam p/calm q/{p/vase q/vase} r/vase} :: compute
|
||||
== ::
|
||||
++ deps :: depend state
|
||||
@ -965,10 +965,10 @@
|
||||
|- ^- vase
|
||||
?~ yom [[%atom %n ~] ~]
|
||||
(slop q.i.yom $(yom t.yom))
|
||||
^- twig
|
||||
^- hoon
|
||||
:+ %cncb [%& 2]~
|
||||
=+ axe=3
|
||||
|- ^- (list (pair wing twig))
|
||||
|- ^- (list (pair wing hoon))
|
||||
?~ yom ~
|
||||
:- [p.i.yom [%$ (peg axe 2)]]
|
||||
$(yom t.yom, axe (peg axe 3))
|
||||
@ -1036,7 +1036,7 @@
|
||||
(fine cof bem(r [%ud ((hard @) +.+:(need u.von))]))
|
||||
::
|
||||
++ lane :: type infer
|
||||
|= {cof/cafe typ/type gen/twig}
|
||||
|= {cof/cafe typ/type gen/hoon}
|
||||
%+ (cowl cof) (mule |.((~(play ut typ) gen)))
|
||||
|=(ref/type ref)
|
||||
::
|
||||
@ -1211,10 +1211,10 @@
|
||||
::
|
||||
++ mail :: cached mint
|
||||
~/ %mail
|
||||
|= {cof/cafe sut/type gen/twig}
|
||||
|= {cof/cafe sut/type gen/hoon}
|
||||
^- (bolt (pair type nock))
|
||||
%+ (clef %slim) (fine cof sut gen)
|
||||
|= {cof/cafe sut/type gen/twig}
|
||||
|= {cof/cafe sut/type gen/hoon}
|
||||
=+ puz=(mule |.((~(mint ut sut) [%noun gen])))
|
||||
?- -.puz
|
||||
$| (flaw cof p.puz)
|
||||
@ -1223,7 +1223,7 @@
|
||||
::
|
||||
++ maim :: slap
|
||||
~/ %maim
|
||||
|= {cof/cafe vax/vase gen/twig}
|
||||
|= {cof/cafe vax/vase gen/hoon}
|
||||
^- (bolt vase)
|
||||
%+ cope (mail cof p.vax gen)
|
||||
|= {cof/cafe typ/type fol/nock}
|
||||
@ -1440,26 +1440,26 @@
|
||||
++ meow :: assemble
|
||||
:: =+ dyv=0
|
||||
|= {how/beam arg/coin}
|
||||
=| $: rop/(map term (pair hoof twig)) :: structures
|
||||
bil/(map term (pair hoof twig)) :: libraries
|
||||
boy/(list twig) :: body stack
|
||||
=| $: rop/(map term (pair hoof hoon)) :: structures
|
||||
bil/(map term (pair hoof hoon)) :: libraries
|
||||
boy/(list hoon) :: body stack
|
||||
lit/? :: drop arguments
|
||||
==
|
||||
~% %meow ..meow ~
|
||||
|%
|
||||
++ able :: assemble preamble
|
||||
^- twig
|
||||
^- hoon
|
||||
:+ %tsgr
|
||||
?: =(~ rop)
|
||||
[%$ 1]
|
||||
:+ %brcn [~ ~]
|
||||
=- [[0 [~ ~] -] ~ ~]
|
||||
(~(run by rop) |=({^ a/twig} [~ %ash a]))
|
||||
(~(run by rop) |=({^ a/hoon} [~ %ash a]))
|
||||
?: =(~ bil)
|
||||
[%$ 1]
|
||||
:+ %brcn [~ ~]
|
||||
=- [[0 [~ ~] -] ~ ~]
|
||||
(~(run by bil) |=({^ a/twig} [~ %ash a]))
|
||||
(~(run by bil) |=({^ a/hoon} [~ %ash a]))
|
||||
::
|
||||
++ abut :: generate
|
||||
|= {cof/cafe hyd/hood}
|
||||
|
@ -774,7 +774,7 @@
|
||||
== ::
|
||||
++ hoof (trel ? term (unit (pair case ship))) :: resource reference
|
||||
++ hoop :: source in hood
|
||||
$% {$& p/twig} :: direct twig
|
||||
$% {$& p/hoon} :: direct hoon
|
||||
{$| p/beam} :: resource location
|
||||
== ::
|
||||
++ hops :: XX late-bound path
|
||||
@ -782,8 +782,8 @@
|
||||
pof/(unit {p/@ud q/tyke}) ::
|
||||
== ::
|
||||
++ horn :: resource tree
|
||||
$% {$ape p/twig} :: /~ twig by hand
|
||||
{$arg p/twig} :: /$ argument
|
||||
$% {$ape p/hoon} :: /~ hoon by hand
|
||||
{$arg p/hoon} :: /$ argument
|
||||
{$alt p/(list horn)} :: /| options
|
||||
{$dep p/horn} :: /# insert dephash
|
||||
{$dub p/term q/horn} :: /= apply face
|
||||
@ -795,9 +795,9 @@
|
||||
{$nap p/horn} :: /_ homo map
|
||||
{$now p/horn} :: deprecated
|
||||
{$nod p/term q/horn} :: /_ @ list by odor
|
||||
{$saw p/twig q/horn} :: /; operate on
|
||||
{$saw p/hoon q/horn} :: /; operate on
|
||||
{$see p/hops q/horn} :: /: relative to
|
||||
{$sic p/twig q/horn} :: /^ cast
|
||||
{$sic p/hoon q/horn} :: /^ cast
|
||||
{$toy p/? q/mark} :: /mark/ static/hook
|
||||
== ::
|
||||
++ milk (trel ship desk silk) :: sourced silk
|
||||
@ -820,7 +820,7 @@
|
||||
{$pact p/silk q/silk} :: patch
|
||||
{$plan p/beam q/coin r/hood} :: structured assembly
|
||||
{$reef $~} :: kernel reef
|
||||
{$ride p/twig q/silk} :: silk thru twig
|
||||
{$ride p/hoon q/silk} :: silk thru hoon
|
||||
{$tabl p/(list (pair silk silk))} :: list
|
||||
{$vale p/mark q/*} :: validate
|
||||
{$volt p/(cask *)} :: unsafe add type
|
||||
|
Loading…
Reference in New Issue
Block a user