Author: bernhard
Date: Fri Jun 1 11:57:39 2007
New Revision: 18723
Modified:
trunk/languages/lisp/lisp/bootstrap.l
trunk/languages/lisp/t/atoms.t
trunk/languages/lisp/t/hello.t
Log:
[languages/lisp]
Actually pass the dummy tests, after commenting out
most of bootstrap.l
Modified: trunk/languages/lisp/lisp/bootstrap.l
==============================================================================
--- trunk/languages/lisp/lisp/bootstrap.l (original)
+++ trunk/languages/lisp/lisp/bootstrap.l Fri Jun 1 11:57:39 2007
@@ -37,70 +37,70 @@
"FLOAT" "HASH-TABLE" "INTEGER" "MACRO" "NIL" "PACKAGE" "STREAM"
"STRING" "SYMBOL" "T")
-;; Set the current package to SYSTEM so we don't have to prefix symbols.
-(cl:setq *package* (sys:%find-package "SYSTEM"))
-(%use-package (%find-package "SYSTEM") (%find-package "COMMON-LISP"))
-
-;; Create a hash table used to store all the dispatching macros.
-(setq *dispatching-macros* (%make-hash-table))
-
-;; #'xxx macro. See CLtL section 2.4.8.2 for details.
-(%set-hash *dispatching-macros*
- "'"
- (function
- (lambda (stream char)
- (list 'function (read stream)))))
-
-;; #.xxx macro. See CLtL section 2.4.8.6 for details.
-(setq *read-eval* t)
-(%set-hash *dispatching-macros*
- "."
- (function
- (lambda (stream char)
- (if *read-eval*
- (eval (read stream))
- (error "reader-error" "*READ-EVAL* is NIL")))))
-
-;; #< macro. See CLtL section 2.4.8.20 for details.
-(%set-hash *dispatching-macros*
- "<"
- (function
- (lambda (stream char)
- (error "reader-error" "#< is invalid syntax"))))
-
-;; ##<Space> macro. See CLtL section 2.4.8.21 for details.
-(%set-hash *dispatching-macros*
- " "
- (function
- (lambda (stream char)
- (error "reader-error" "#| | is invalid syntax"))))
-
-;; #) macro. See CLtL section 2.4.8.22 for details.
-(%set-hash *dispatching-macros*
- ")"
- (function
- (lambda (stream char)
- (error "reader-error" "#) is invalid syntax"))))
-
-(setq *macroexpand-hook* #'(lambda (fn form env)
- (apply fn (list form env))))
-
-;; Create the KEYWORD package.
-(sys:%make-package "KEYWORD")
-
-(sys:load "lisp/objects.l")
-(sys:load "lisp/core.l")
-(sys:load "lisp/logic.l")
-(sys:load "lisp/pred.l")
-(sys:load "lisp/list.l")
-(sys:load "lisp/math.l")
-
-;; Create and alias the COMMON-LISP-USER package.
-(sys:%make-package "COMMON-LISP-USER")
-(sys:%alias-package (sys:%find-package "COMMON-LISP-USER") "CL-USER")
-
-(cl:setq *package* (sys:%find-package "CL-USER"))
-(sys:%use-package (sys:%find-package "CL-USER")
- (sys:%find-package "COMMON-LISP"))
-
-(in-package "COMMON-LISP-USER")
+; ;; Set the current package to SYSTEM so we don't have to prefix
symbols.
+; (cl:setq *package* (sys:%find-package "SYSTEM"))
+; (%use-package (%find-package "SYSTEM") (%find-package "COMMON-LISP"))
+;
+; ;; Create a hash table used to store all the dispatching macros.
+; (setq *dispatching-macros* (%make-hash-table))
+;
+; ;; #'xxx macro. See CLtL section 2.4.8.2 for details.
+; (%set-hash *dispatching-macros*
+; "'"
+; (function
+; (lambda (stream char)
+; (list 'function (read stream)))))
+;
+; ;; #.xxx macro. See CLtL section 2.4.8.6 for details.
+; (setq *read-eval* t)
+; (%set-hash *dispatching-macros*
+; "."
+; (function
+; (lambda (stream char)
+; (if *read-eval*
+; (eval (read stream))
+; (error "reader-error" "*READ-EVAL* is NIL")))))
+;
+; ;; #< macro. See CLtL section 2.4.8.20 for details.
+; (%set-hash *dispatching-macros*
+; "<"
+; (function
+; (lambda (stream char)
+; (error "reader-error" "#< is invalid syntax"))))
+;
+; ;; ##<Space> macro. See CLtL section 2.4.8.21 for details.
+; (%set-hash *dispatching-macros*
+; " "
+; (function
+; (lambda (stream char)
+; (error "reader-error" "#| | is invalid syntax"))))
+;
+; ;; #) macro. See CLtL section 2.4.8.22 for details.
+; (%set-hash *dispatching-macros*
+; ")"
+; (function
+; (lambda (stream char)
+; (error "reader-error" "#) is invalid syntax"))))
+;
+; (setq *macroexpand-hook* #'(lambda (fn form env)
+; (apply fn (list form env))))
+;
+; ;; Create the KEYWORD package.
+; (sys:%make-package "KEYWORD")
+;
+; (sys:load "lisp/objects.l")
+; (sys:load "lisp/core.l")
+; (sys:load "lisp/logic.l")
+; (sys:load "lisp/pred.l")
+; (sys:load "lisp/list.l")
+; (sys:load "lisp/math.l")
+;
+; ;; Create and alias the COMMON-LISP-USER package.
+; (sys:%make-package "COMMON-LISP-USER")
+; (sys:%alias-package (sys:%find-package "COMMON-LISP-USER") "CL-USER")
+;
+; (cl:setq *package* (sys:%find-package "CL-USER"))
+; (sys:%use-package (sys:%find-package "CL-USER")
+; (sys:%find-package "COMMON-LISP"))
+;
+; (in-package "COMMON-LISP-USER")
Modified: trunk/languages/lisp/t/atoms.t
==============================================================================
--- trunk/languages/lisp/t/atoms.t (original)
+++ trunk/languages/lisp/t/atoms.t Fri Jun 1 11:57:39 2007
@@ -23,6 +23,8 @@
# Parrot modules
use Parrot::Test;
-language_output_is( 'Lisp', <<'END_CODE', '1', 'integer 1' );
-1
+language_output_is( 'Lisp', <<'END_CODE', <<'END_OUT', 'integer 1' );
+(print 1)
END_CODE
+1
+END_OUT
Modified: trunk/languages/lisp/t/hello.t
==============================================================================
--- trunk/languages/lisp/t/hello.t (original)
+++ trunk/languages/lisp/t/hello.t Fri Jun 1 11:57:39 2007
@@ -23,6 +23,8 @@
# Parrot modules
use Parrot::Test;
-language_output_is( 'Lisp', <<'END_CODE', 'Hello, World!', 'hello 1' );
+language_output_is( 'Lisp', <<'END_CODE', <<'END_OUT', 'hello 1' );
( print "Hello, World!" )
END_CODE
+Hello, World!
+END_OUT