]> gitweb.factorcode.org Git - factor.git/blobdiff - core/syntax/syntax.factor
classes.builtin: Add the BUILTIN: keyword which lets builtin classes show up in sourc...
[factor.git] / core / syntax / syntax.factor
index 78a14f68fca251e21dcee7352cf3cd6410f33d3b..0eaece8a9d34500ec1a9c3770b74f62930d22eea 100644 (file)
@@ -1,8 +1,8 @@
 ! Copyright (C) 2004, 2010 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors arrays byte-arrays byte-vectors
-classes.algebra.private classes.intersection classes.maybe
-classes.mixin classes.parser classes.predicate
+classes.algebra.private classes.builtin classes.intersection
+classes.maybe classes.mixin classes.parser classes.predicate
 classes.singleton classes.tuple classes.tuple.parser
 classes.union combinators compiler.units definitions
 effects.parser generic generic.hook generic.math generic.parser
@@ -116,6 +116,12 @@ IN: bootstrap.syntax
         scan-new-word parse-definition define-syntax
     ] define-core-syntax
 
+    "BUILTIN:" [
+        scan-word-name
+        current-vocab lookup-word
+        (parse-tuple-definition) 2drop check-builtin
+    ] define-core-syntax
+
     "SYMBOL:" [
         scan-new-word define-symbol
     ] define-core-syntax