mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 10:49:26 +03:00
clay: condense +pile-rule
Rewrites the `+pile-rule` parsing rule for compactness and legibility. This is a purely stylistic change.
This commit is contained in:
parent
327a542952
commit
1b1b613729
@ -807,75 +807,49 @@
|
|||||||
++ pile-rule
|
++ pile-rule
|
||||||
|= pax=path
|
|= pax=path
|
||||||
%- full
|
%- full
|
||||||
%+ ifix [gay gay]
|
%+ ifix
|
||||||
%+ cook |=(pile +<)
|
:_ gay
|
||||||
;~ pfix
|
|
||||||
:: parse optional /? and ignore
|
:: parse optional /? and ignore
|
||||||
::
|
::
|
||||||
;~ pose
|
;~(plug gay (punt ;~(plug fas wut gap dem gap)))
|
||||||
(cold ~ ;~(plug fas wut gap dem gap))
|
|^
|
||||||
(easy ~)
|
|
||||||
==
|
|
||||||
::
|
|
||||||
;~ plug
|
;~ plug
|
||||||
;~ pose
|
%+ cook (bake zing (list (list taut)))
|
||||||
;~ sfix
|
%+ rune hep
|
||||||
%+ cook |=((list (list taut)) (zing +<))
|
|
||||||
%+ more gap
|
|
||||||
;~ pfix ;~(plug fas hep gap)
|
|
||||||
(most ;~(plug com gaw) taut-rule)
|
(most ;~(plug com gaw) taut-rule)
|
||||||
==
|
|
||||||
gap
|
|
||||||
==
|
|
||||||
(easy ~)
|
|
||||||
==
|
|
||||||
::
|
::
|
||||||
;~ pose
|
%+ cook (bake zing (list (list taut)))
|
||||||
;~ sfix
|
%+ rune lus
|
||||||
%+ cook |=((list (list taut)) (zing +<))
|
|
||||||
%+ more gap
|
|
||||||
;~ pfix ;~(plug fas lus gap)
|
|
||||||
(most ;~(plug com gaw) taut-rule)
|
(most ;~(plug com gaw) taut-rule)
|
||||||
==
|
|
||||||
gap
|
|
||||||
==
|
|
||||||
(easy ~)
|
|
||||||
==
|
|
||||||
::
|
::
|
||||||
;~ pose
|
%+ rune tis
|
||||||
;~ sfix
|
;~(plug sym ;~(pfix gap fas (more fas urs:ab)))
|
||||||
%+ cook |=((list [face=term =path]) +<)
|
|
||||||
%+ more gap
|
|
||||||
;~ pfix ;~(plug fas tis gap)
|
|
||||||
%+ cook |=([term path] +<)
|
|
||||||
;~(plug sym ;~(pfix ;~(plug gap fas) (more fas urs:ab)))
|
|
||||||
==
|
|
||||||
gap
|
|
||||||
==
|
|
||||||
(easy ~)
|
|
||||||
==
|
|
||||||
::
|
::
|
||||||
;~ pose
|
%+ rune tar
|
||||||
;~ sfix
|
;~ (glue gap)
|
||||||
%+ cook |=((list [face=term =mark =path]) +<)
|
|
||||||
%+ more gap
|
|
||||||
;~ pfix ;~(plug fas tar gap)
|
|
||||||
%+ cook |=([term mark path] +<)
|
|
||||||
;~ plug
|
|
||||||
sym
|
sym
|
||||||
;~(pfix ;~(plug gap cen) sym)
|
;~(pfix cen sym)
|
||||||
;~(pfix ;~(plug gap fas) (more fas urs:ab))
|
;~(pfix fas (more fas urs:ab))
|
||||||
==
|
|
||||||
==
|
|
||||||
gap
|
|
||||||
==
|
|
||||||
(easy ~)
|
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
%+ cook |=(huz=(list hoon) `hoon`tssg+huz)
|
%+ stag %tssg
|
||||||
(most gap tall:(vang & pax))
|
(most gap tall:(vang & pax))
|
||||||
==
|
==
|
||||||
==
|
::
|
||||||
|
++ pant
|
||||||
|
|* fel=^rule
|
||||||
|
;~(pose fel (easy ~))
|
||||||
|
::
|
||||||
|
++ mast
|
||||||
|
|* [bus=^rule fel=^rule]
|
||||||
|
;~(sfix (more bus fel) bus)
|
||||||
|
::
|
||||||
|
++ rune
|
||||||
|
|* [bus=^rule fel=^rule]
|
||||||
|
%- pant
|
||||||
|
%+ mast gap
|
||||||
|
;~(pfix fas bus gap fel)
|
||||||
|
--
|
||||||
::
|
::
|
||||||
++ taut-rule
|
++ taut-rule
|
||||||
%+ cook |=(taut +<)
|
%+ cook |=(taut +<)
|
||||||
|
Loading…
Reference in New Issue
Block a user