]> gitweb.factorcode.org Git - factor.git/commitdiff
locals.parser: use with-words again.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 15 Dec 2020 21:23:27 +0000 (13:23 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 15 Dec 2020 21:23:27 +0000 (13:23 -0800)
core/locals/parser/parser.factor

index fc506ce3d7615511f100e36ff2d84d11209772a2..84e02fdf5f28e76d7aec3364ca7bd9d8fe266129 100644 (file)
@@ -35,9 +35,7 @@ SINGLETON: lambda-parser
     H{
         { in-lambda? t }
         { quotation-parser lambda-parser }
-    } swap '[
-        [ use-words @ ] [ unuse-words ] bi
-    ] with-variables ; inline
+    } -rot '[ _ _ with-words ] with-variables ; inline
 
 : (parse-lambda) ( assoc -- quot )
     [ \ ] parse-until >quotation ] with-lambda-scope ;