mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-20 13:22:07 +03:00
hoon: preliminary support for pith pattern syntax
Along the lines of ?=(#/const/who=@p/* your-pith) Implementation still needs further tuning, restricting, etc.
This commit is contained in:
parent
db899ce09f
commit
f604bb576c
@ -13115,6 +13115,37 @@
|
||||
(rune col %cncl exqz)
|
||||
==
|
||||
==
|
||||
:- '#'
|
||||
;~ pfix hax fas
|
||||
%+ stag %bccl
|
||||
%+ cook
|
||||
|= [[i=spec t=(list spec)] e=spec]
|
||||
[i (snoc t e)]
|
||||
;~ plug
|
||||
%+ most ;~(less ;~(plug fas tar) fas)
|
||||
%- stew
|
||||
^. stet ^. limo
|
||||
:~ :- ['a' 'z']
|
||||
;~ pose
|
||||
:: /name=@aura
|
||||
::
|
||||
%+ stag %bcts
|
||||
;~ plug sym
|
||||
;~ pfix tis pat
|
||||
(stag %base (stag %atom mota))
|
||||
== ==
|
||||
:: /constant
|
||||
::
|
||||
(stag %leaf (stag %tas sym))
|
||||
==
|
||||
==
|
||||
::
|
||||
;~ pose
|
||||
(cold [%base %noun] ;~(plug fas tar))
|
||||
(easy %base %null)
|
||||
==
|
||||
==
|
||||
==
|
||||
==
|
||||
++ expression
|
||||
%- stew
|
||||
|
Loading…
Reference in New Issue
Block a user