added into, reload, and solid

This commit is contained in:
Ubuntu 2014-10-03 22:31:16 +00:00
parent 154eaf622f
commit 7165dc93da
11 changed files with 155 additions and 0 deletions

18
main/app/into/core.hook Normal file
View File

@ -0,0 +1,18 @@
!:
|_ [hid=hide ~]
++ poke-into-args
|= [ost=bone you=ship pax=path dat=@ ~]
:_ +>.$
:* [ost %pass /cp %c %info our.hid (foal pax dat)]
[ost %give %nice ~]
%+ turn (~(tap by sup.hid))
|= [ost=bone *]
:^ ost %give %rush
:- %tang :_ ~
leaf/"written"
==
++ peer
|=
*
`+>
--

22
main/app/reload/core.hook Normal file
View File

@ -0,0 +1,22 @@
!:
|_ [hid=hide ~]
++ poke-reload-args
|= [ost=bone you=ship all=(list ,@tas)]
:_ +>.$
%+ welp
%+ turn all
|= nam=@tas
=+ tip=(end 3 1 nam)
=+ pax=[(scot %p our.hid) %arvo (scot %da lat.hid) nam %hoon ~]
[ost %give %veer ?:(=('z' tip) %$ tip) pax (,@ .^(%cx pax))]
:- [ost %give %nice ~]
%+ turn (~(tap by sup.hid))
|= [ost=bone *]
:^ ost %give %rush
:- %tang :_ ~
leaf/"done"
++ peer
|=
*
`+>
--

View File

@ -15,6 +15,8 @@
[%mean p=ares] ::
[%nice ~] ::
[%meta p=vase] ::
[%veer p=@ta q=path r=@t] ::
[%vega p=path] ::
== ::
++ hapt ,[p=ship q=path] ::
++ move ,[p=bone q=(mold note gift)] ::
@ -42,6 +44,8 @@
[%nice ~] ::
[%rush p=mark q=*] ::
[%rust p=mark q=*] ::
[%veer p=@ta q=path r=@t] ::
[%vega p=path] ::
== == == ::
--
!:
@ -227,6 +231,10 @@
^- [(list move) _+>]
:: ~& [%shell-pour -.sih (,@ta +<.sih)]
::=+ sih=((hard sign) sih)
?: ?=(%veer +<.sih) :: vomit
[[ost %give +.sih]~ +>.$]
?: ?=(%vega +<.sih) :: vomit
[[ost %give +.sih]~ +>.$]
?~ pax ~& %no-path !!
?+ &1.pax ~& %strange-path !!
%print

51
main/app/solid/core.hook Normal file
View File

@ -0,0 +1,51 @@
!:
|_ [hid=hide ~]
++ poke-solid-args
|= [ost=bone you=ship ~]
:_ +>.$
=+ top=`path`/(scot %p our.hid)/arvo/(scot %da lat.hid)
=+ pax=`path`(weld top `path`[%hoon ~])
~& %solid-start
=+ gen=(reck pax)
~& %solid-parsed
=+ ken=q:(~(mint ut %noun) %noun gen)
~& %solid-compiled
=+ ^= all
=+ all=.*(0 ken)
=+ ^= vay ^- (list ,[p=@tas q=@tas])
:~ [%$ %zuse]
[%g %gall]
[%f %ford]
[%a %ames]
[%b %batz]
[%c %clay]
[%d %dill]
[%e %eyre]
==
|- ^+ all
?~ vay all
=+ pax=(weld top `path`[q.i.vay ~])
=+ txt=((hard ,@) .^(%cx (weld pax `path`[%hoon ~])))
=+ sam=[lat.hid `ovum`[[%gold ~] [%veer p.i.vay pax txt]]]
~& [%solid-veer i.vay]
=+ gat=.*(all .*(all [0 42]))
=+ nex=+:.*([-.gat [sam +>.gat]] -.gat)
$(vay t.vay, all nex)
:_ ~ :_ ~
~& %solid-jamming
=+ pac=(jam [ken all])
~& %solid-finished
=+ nax=/(scot %p our.hid)/try/(scot %da lat.hid)/urbit/pill
:* [ost %pass /cp %c %info our.hid (foal nax pac)]
[ost %give %nice ~]
%+ turn (~(tap by sup.hid))
|= [ost=bone *]
:^ ost %give %rush
:- %tang :_ ~
leaf/"done"
==
++ peer
|=
*
`+>
--

View File

@ -21,6 +21,8 @@
[%rust gilt] ::
[%mean p=ares] ::
[%nice ~] ::
[%veer p=@ta q=path r=@t] ::
[%vega p=path] ::
== ::
++ hapt ,[p=ship q=path] ::
++ move ,[p=bone q=(mold note gift)] ::
@ -38,6 +40,8 @@
[%nice ~] ::
[%rust p=%term-line q=term-line] ::
[%rush p=%term-line q=term-line] ::
[%veer p=@ta q=path r=@t] ::
[%vega p=path] ::
== == ==
--
::
@ -208,6 +212,10 @@
++ pour
|= [ost=bone pax=path sih=sign]
^- [(list move) _+>]
?: ?=(%veer +<.sih) :: vomit
[[ost %give +.sih]~ +>.$]
?: ?=(%vega +<.sih) :: vomit
[[ost %give +.sih]~ +>.$]
?: &(!?=(~ pax) !?=(~ |1.pax) ?=(%hi &1.pax) ?=(%in &2.pax))
?+ +<.sih !!
%nice `+>.$

View File

@ -0,0 +1,15 @@
::
:::: /hoon/core/zing/pro
::
/? 314
/- into-args
|_ arg=into-args
::
++ grab :: convert from
|%
++ noun :: convert from %noun
|= src=*
^+ +>+
+>+(arg (into-args src))
--
--

View File

@ -0,0 +1,15 @@
::
:::: /hoon/core/zing/pro
::
/? 314
/- reload-args
|_ arg=reload-args
::
++ grab :: convert from
|%
++ noun :: convert from %noun
|= src=*
^+ +>+
+>+(arg (reload-args src))
--
--

View File

@ -0,0 +1,15 @@
::
:::: /hoon/core/zing/pro
::
/? 314
/- solid-args
|_ arg=solid-args
::
++ grab :: convert from
|%
++ noun :: convert from %noun
|= src=*
^+ +>+
+>+(arg (solid-args src))
--
--

View File

@ -0,0 +1 @@
,[pax=path dat=@ ~]

View File

@ -0,0 +1 @@
,[(list ,@tas)]

View File

@ -0,0 +1 @@
,[~]