mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 19:46:50 +03:00
fixed optional argument parser, usage in |merge
This commit is contained in:
parent
f49894ad66
commit
8e3933a0c3
@ -208,14 +208,10 @@
|
||||
(star ;~(pfix ace dp-value))
|
||||
%+ cook
|
||||
~(gas by *(map term (unit dojo-source)))
|
||||
%+ more
|
||||
;~(plug com ace)
|
||||
%+ more com
|
||||
;~ plug
|
||||
;~(pfix tis sym)
|
||||
;~ pose
|
||||
;~(pfix ace (stag ~ dp-value))
|
||||
(easy ~)
|
||||
==
|
||||
;~(pfix ace tis sym)
|
||||
(punt ;~(pfix ace dp-value))
|
||||
==
|
||||
==
|
||||
--
|
||||
|
@ -11,12 +11,11 @@
|
||||
::::
|
||||
!:
|
||||
|= $: [now=@da eny=@uvI bek=beak]
|
||||
[arg=[?(sorc [syd=$|(desk beaky) sorc])] opt=(map ,%gem germ)]
|
||||
[arg=[?(sorc [syd=$|(desk beaky) sorc])] gem=?(%auto germ)]
|
||||
==
|
||||
=* our p.bek
|
||||
|^ :- %kiln-merge
|
||||
^- [syd=desk her=ship sud=desk gem=?(germ %auto)]
|
||||
=+ gem=(fall (~(get by opt) %gem) %auto)
|
||||
^- [syd=desk her=ship sud=desk gem=?(%auto germ)]
|
||||
?- arg
|
||||
[@ @ ~] =+(arg [sud ?.(=(our her) her (sein her)) sud gem])
|
||||
[^ ~] =+((pars bek.arg) [dez ?.(=(our who) who (sein who)) dez gem])
|
||||
|
Loading…
Reference in New Issue
Block a user