shrub/gen/solid.hoon

43 lines
913 B
Plaintext
Raw Normal View History

2015-06-18 04:08:47 +03:00
::
2016-02-11 03:41:28 +03:00
:::: /hoon/solid/gen
2015-06-18 04:08:47 +03:00
::
/? 314
::
::::
!:
2015-09-12 03:24:51 +03:00
:- %say
2015-12-20 23:50:45 +03:00
|= $: {now/@da eny/@uvI bec/beak}
2015-12-10 12:17:19 +03:00
{$~ $~}
2015-06-18 04:08:47 +03:00
==
:- %noun
2015-11-11 01:40:52 +03:00
=+ top=`path`/(scot %p p.bec)/[q.bec]/(scot %da now)/arvo
2015-06-18 04:08:47 +03:00
=+ pax=`path`(weld top `path`[%hoon ~])
~& %solid-start
=+ gen=(reck pax)
2016-01-26 03:47:58 +03:00
:: =+ nig=(rick pax)
:: ~& [%mugs gen+(mug gen) nig+(mug nig)]
2015-06-18 04:08:47 +03:00
~& %solid-parsed
=+ ken=q:(~(mint ut %noun) %noun gen)
~& %solid-compiled
:- ken
=+ all=.*(0 ken)
2015-12-20 23:50:45 +03:00
=+ ^= vay ^- (list {p/@tas q/@tas})
2015-06-18 04:08:47 +03:00
:~ [%$ %zuse]
2016-02-01 09:16:26 +03:00
[%c %clay]
2015-06-18 04:08:47 +03:00
[%g %gall]
[%f %ford]
[%a %ames]
[%b %behn]
2015-06-18 04:08:47 +03:00
[%d %dill]
[%e %eyre]
==
|- ^+ all
?~ vay all
=+ pax=(weld top `path`[q.i.vay ~])
2016-01-26 03:47:58 +03:00
=+ txt=.^(@ %cx (weld pax `path`[%hoon ~]))
2015-06-18 04:08:47 +03:00
=+ sam=[now `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)