chiark
/
gitweb
/
~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/keyword.c (kw_parseempty): Use correct variable scanning `kwval' list.
[sod]
/
src
/
frontend.lisp
diff --git
a/src/frontend.lisp
b/src/frontend.lisp
index 92573e7ea5193939c3680d9524d7d366955cdea0..a00a8bbbb35dc4c34e3a14561406a0f9acfe9a17 100644
(file)
--- a/
src/frontend.lisp
+++ b/
src/frontend.lisp
@@
-30,12
+30,6
@@
(eval-when (:compile-toplevel :load-toplevel :execute)
(cl:in-package #:sod-frontend)
(cl:in-package #:sod-frontend)
-;;;--------------------------------------------------------------------------
-;;; Preparation for dumping.
-
-(clear-the-decks)
-(exercise)
-
;;;--------------------------------------------------------------------------
;;; The main program.
;;;--------------------------------------------------------------------------
;;; The main program.
@@
-125,8
+119,12
@@
(define-program
("Evaluate raw Lisp code.")
(lambda (lisp)
(handler-case
("Evaluate raw Lisp code.")
(lambda (lisp)
(handler-case
- (let ((*package* (find-package "SOD-USER")))
- (eval (read-from-string lisp)))
+ (let ((*package* (find-package "SOD-USER"))
+ (token (cons 'token nil)))
+ (with-input-from-string (in lisp)
+ (loop (let ((form (read in nil token)))
+ (when (eq form token) (return))
+ (eval form)))))
(error (error)
(option-parse-error "~A" error)))))
(#\l "load" (:arg "FILE")
(error (error)
(option-parse-error "~A" error)))))
(#\l "load" (:arg "FILE")
@@
-238,6
+236,6
@@
(define-program
~[~:; ~:*~D error~:P~[~:; and~]~:*~]~
~[~:; ~:*~D warning~:P~]~%"
*program-name* nerror nwarn))
~[~:; ~:*~D error~:P~[~:; and~]~:*~]~
~[~:; ~:*~D warning~:P~]~%"
*program-name* nerror nwarn))
- (
ex
it (if (plusp nerror) 2 0)))))))
+ (
uiop:qu
it (if (plusp nerror) 2 0)))))))
;;;----- That's all, folks --------------------------------------------------
;;;----- That's all, folks --------------------------------------------------