]> gitweb.factorcode.org Git - factor.git/commitdiff
More refactorings to extra/lisp in the wake of peg changes
authorJames Cash <james.nvc@gmail.com>
Tue, 15 Jul 2008 04:50:06 +0000 (00:50 -0400)
committerJames Cash <james.nvc@gmail.com>
Sun, 24 Aug 2008 03:13:31 +0000 (23:13 -0400)
extra/lisp/lisp.factor

index ee5db27842bdc1ee818955c49ecce49384dc0684..a3f207ec854023bea314ad395692df7d65454c1b 100644 (file)
@@ -86,9 +86,12 @@ PRIVATE>
       { [ dup lisp-symbol? ] [ '[ , lookup-var ] ] }
      [ 1quotation ]
     } cond ;
+
+: lisp-string>factor ( str -- quot )
+    lisp-expr convert-form ;
     
-: lisp-eval ( str -- * )    
-    lisp-expr convert-form call ;
+: lisp-eval ( str -- * )
+    lisp-string>factor call ;
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!