Paste: (Fixed) Implementation of the <[ ... -- ... ]> thing
Author: | Leo Mehraban |
Mode: | factor |
Date: | Mon, 10 Feb 2025 11:41:26 |
Plain Text |
<PRIVATE
ERROR: strange-item-in-supershuffle item ;
: process-single-item ( vars item -- quot ) swap dupd index
[ 1quotation ]
[ dup quotation? [ strange-item-in-supershuffle ] unless ]
if ;
MACRO: call-restore ( quots -- quot )
[ ] [ [ [ dip ] curry ] dip prepose ] reduce ;
PRIVATE>
SYNTAX: <[
"--" parse-tokens
make-locals
[ \ ]> parse-until ] with-words
dupd [ process-single-item ] with map
[ call-restore ] curry <lambda> ?rewrite-closures concat append! ;
New Annotation