]> gitweb.factorcode.org Git - factor.git/commitdiff
Remove workaround from regexp.compiler now that with-compilation-unit infers
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 14 Mar 2009 00:40:38 +0000 (19:40 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 14 Mar 2009 00:40:38 +0000 (19:40 -0500)
basis/regexp/compiler/compiler.factor

index 186d683f8219939ce5848741f04db479253d3e6e..b55cab62946a92c6dc47ceed25bd900e1f1b2ceb 100644 (file)
@@ -3,7 +3,7 @@
 USING: regexp.classes kernel sequences regexp.negation
 quotations assocs fry math locals combinators
 accessors words compiler.units kernel.private strings
-sequences.private arrays call namespaces unicode.breaks
+sequences.private arrays namespaces unicode.breaks
 regexp.transition-tables combinators.short-circuit ;
 IN: regexp.compiler
 
@@ -104,15 +104,13 @@ C: <box> box
     transitions>quot ;
 
 : states>code ( words dfa -- )
-    [ ! with-compilation-unit doesn't compile, so we need call( -- )
-        [
-            '[
-                dup _ word>quot
-                (( last-match index string -- ? ))
-                define-declared
-            ] each
-        ] with-compilation-unit
-    ] call( words dfa -- ) ;
+    [
+        '[
+            dup _ word>quot
+            (( last-match index string -- ? ))
+            define-declared
+        ] each
+    ] with-compilation-unit ;
 
 : states>words ( dfa -- words dfa )
     dup transitions>> keys [ gensym ] H{ } map>assoc
@@ -126,7 +124,7 @@ C: <box> box
 PRIVATE>
 
 : simple-define-temp ( quot effect -- word )
-    [ [ define-temp ] with-compilation-unit ] call( quot effect -- word ) ;
+    [ define-temp ] with-compilation-unit ;
 
 : dfa>word ( dfa -- quot )
     dfa>main-word execution-quot '[ drop [ f ] 2dip @ ]