urbit/gen/solid.hoon

41 lines
854 B
Plaintext
Raw Normal View History

2015-06-18 04:08:47 +03:00
::
2015-09-12 00:15:25 +03:00
:::: /hoon/solid/gen
2015-06-18 04:08:47 +03:00
::
/? 314
::
::::
!:
2015-09-12 03:24:51 +03:00
:- %say
2015-06-18 04:08:47 +03:00
|= $: [now=@da eny=@uvI bec=beak]
[~ ~]
==
:- %noun
=+ top=`path`/(scot %p p.bec)/home/(scot %da now)/arvo
=+ pax=`path`(weld top `path`[%hoon ~])
~& %solid-start
=+ gen=(reck pax)
~& %solid-parsed
=+ ken=q:(~(mint ut %noun) %noun gen)
~& %solid-compiled
:- ken
=+ all=.*(0 ken)
=+ ^= vay ^- (list ,[p=@tas q=@tas])
:~ [%$ %zuse]
[%g %gall]
[%f %ford]
[%a %ames]
[%b %behn]
2015-06-18 04:08:47 +03:00
[%c %clay]
[%d %dill]
[%e %eyre]
==
|- ^+ all
?~ vay all
=+ pax=(weld top `path`[q.i.vay ~])
=+ txt=((hard ,@) .^(%cx (weld pax `path`[%hoon ~])))
=+ 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)