]> gitweb.factorcode.org Git - factor.git/commitdiff
Still working on lisp macros...
authorJames Cash <james.nvc@gmail.com>
Mon, 30 Jun 2008 15:20:41 +0000 (11:20 -0400)
committerJames Cash <james.nvc@gmail.com>
Sun, 24 Aug 2008 03:13:27 +0000 (23:13 -0400)
extra/lisp/lisp.factor

index 67b56ae27a3faad2d89f88bc39488be425322592..ebec272cf101eee96074722badf8b06259885f3c 100644 (file)
@@ -21,7 +21,7 @@ DEFER: define-lisp-macro
     
 : convert-cond ( cons -- quot )  
     cdr [ 2car [ convert-form ] bi@ 2array ]
-    { } lmap-as '[ , cond ]  ;
+    { } lmap-as '[ , cond ] ;
     
 : convert-general-form ( cons -- quot )
     uncons [ convert-body ] [ convert-form ] bi* '[ , @ funcall ] ;
@@ -61,7 +61,7 @@ PRIVATE>
     cdr [ car ] keep [ convert-lambda ] [ car name>> ] bi define-lisp-macro 1quotation ;
     
 : macro-expand ( cons -- quot )
-    uncons [ list>seq >quotation ] [ lookup-macro call ] bi* call convert-form ;
+    uncons [ list>seq >quotation ] [ lookup-macro ] bi* call convert-form ;
     
 : form-dispatch ( cons lisp-symbol -- quot )
     name>>