]> gitweb.factorcode.org Git - factor.git/commitdiff
Moving VALUE: into unicode.syntax.backend
authorDaniel Ehrenberg <ehrenbed@carleton.edu>
Thu, 1 May 2008 00:39:54 +0000 (19:39 -0500)
committerDaniel Ehrenberg <ehrenbed@carleton.edu>
Thu, 1 May 2008 00:39:54 +0000 (19:39 -0500)
extra/unicode/breaks/breaks.factor
extra/unicode/data/data.factor
extra/unicode/syntax/backend/backend.factor [new file with mode: 0644]

index ee3c8729c4bb1171f93ca7e0993ffef5359399b2..2117567e9f92fba8c98dd1b8408e6798f2561fa0 100644 (file)
@@ -1,6 +1,6 @@
 USING: unicode.categories kernel math combinators splitting
 sequences math.parser io.files io assocs arrays namespaces
-math.ranges unicode.normalize
+math.ranges unicode.normalize unicode.syntax.backend
 unicode.syntax unicode.data compiler.units alien.syntax io.encodings.ascii ;
 IN: unicode.breaks
 
index 58d836464c6963666162067509c2d1c2916ba8f5..b1e6fc5f8ba7a1831d7f9fb0f91ec5b51cb3f35b 100755 (executable)
@@ -1,16 +1,8 @@
 USING: assocs math kernel sequences io.files hashtables
-quotations splitting arrays math.parser hash2
+quotations splitting arrays math.parser hash2 unicode.syntax.backend
 byte-arrays words namespaces words compiler.units parser io.encodings.ascii  ;
 IN: unicode.data
 
-<<
-: VALUE:
-    CREATE-WORD { f } clone [ first ] curry define ; parsing
-
-: set-value ( value word -- )
-    word-def first set-first ;
->>
-
 ! Convenience functions
 : ?between? ( n/f from to -- ? )
     pick [ between? ] [ 3drop f ] if ;
diff --git a/extra/unicode/syntax/backend/backend.factor b/extra/unicode/syntax/backend/backend.factor
new file mode 100644 (file)
index 0000000..d1065da
--- /dev/null
@@ -0,0 +1,8 @@
+USING: kernel parser sequences definitions ;
+IN: unicode.syntax.backend
+
+: VALUE:
+    CREATE-WORD { f } clone [ first ] curry define ; parsing
+
+: set-value ( value word -- )
+    word-def first set-first ;