urbit/main/bin/solid.hoon

48 lines
1.2 KiB
Plaintext
Raw Normal View History

2013-09-29 00:21:18 +04:00
!:
:: /=main=/bin/solid/hoon
::
=> .(- `[who=@p how=path]`-)
|= [est=time eny=@uw]
|= arg=*
=+ ^= lok ^- case
?: =(~ arg) [%da est]
?> =(~ +.arg)
((hard case) -.arg)
=+ cav=(scot (dime lok))
=+ top=`path`[(scot %p who) %arvo cav ~]
=+ pax=`path`(weld top `path`[%hoon ~])
~& %solid-start
=+ gen=(reck pax)
~& %solid-parsed
=+ ken=q:(~(mint ut %noun) %noun gen)
~& %solid-compiled
=+ ^= all
2014-10-25 16:21:48 +04:00
~& [%solid-ken (mug ken)]
2013-09-29 00:21:18 +04:00
=+ all=.*(0 ken)
2014-10-25 16:21:48 +04:00
~& %solid-loaded
2013-09-29 00:21:18 +04:00
=+ ^= vay ^- (list ,[p=@tas q=@tas])
:~ [%$ %zuse]
2014-07-21 07:15:02 +04:00
[%f %ford]
2013-09-29 00:21:18 +04:00
[%a %ames]
[%b %batz]
[%c %clay]
[%d %dill]
[%e %eyre]
2014-05-29 02:06:52 +04:00
[%g %gall]
2013-09-29 00:21:18 +04:00
==
|- ^+ all
?~ vay all
=+ pax=(weld top `path`[q.i.vay ~])
=+ txt=((hard ,@) .^(%cx (weld pax `path`[%hoon ~])))
=+ sam=[est `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)
:_ ~ :_ ~
2014-08-01 00:23:02 +04:00
:: ~& %solid-jamming
:: =+ pac=(jam [ken all])
:: ~& %solid-finished
:: [%xx %save [%urbit %pill ~] pac]
2014-08-01 00:23:02 +04:00
[%xx %sage [%urbit %pill ~] [ken all]]