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:
fang 2022-07-01 15:24:48 +02:00
parent db899ce09f
commit f604bb576c
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -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