WIP: +graph-export

This commit is contained in:
Ted Blackman 2020-09-18 15:50:54 -04:00
parent 0211cdd73c
commit f334854318
2 changed files with 25 additions and 0 deletions

View File

@ -473,6 +473,20 @@
:+ %0 :+ %0
now.bowl now.bowl
[%add-graph [ship term] `graph:store`p.u.result q.u.result] [%add-graph [ship term] `graph:store`p.u.result q.u.result]
::
:: note: near-duplicate of /x/graph
::
[%x %archive @ @ ~]
=/ =ship (slav %p i.t.t.path)
=/ =term i.t.t.t.path
=/ result=(unit marked-graph:store)
(~(get by archive) [ship term])
?~ result [~ ~]
:- ~ :- ~ :- %graph-update
!> ^- update:store
:+ %0
now.bowl
[%add-graph [ship term] `graph:store`p.u.result q.u.result]
:: ::
[%x %graph-subset @ @ @ @ ~] [%x %graph-subset @ @ @ @ ~]
=/ =ship (slav %p i.t.t.path) =/ =ship (slav %p i.t.t.path)

View File

@ -0,0 +1,11 @@
/+ graph-store
::
:- %say
|= $: [now=@da eny=@uvJ bec=beak]
[=ship graph=term ~]
==
:- %noun
=/ our (scot %p p.bec)
=/ wen (scot %da now)
=/ who (scot %p ship)
.^(update:graph-store /gx/[our]/graph-store/[wen]/[who]/[graph])