X-Git-Url: https://git.distorted.org.uk/~mdw/runlisp/blobdiff_plain/e29834b853038e8c90dcfe8377f02431cad42fc5..a71016725a61073f437a9e725af564a6dc371a38:/eval.lisp diff --git a/eval.lisp b/eval.lisp index 24cd107..79e5064 100644 --- a/eval.lisp +++ b/eval.lisp @@ -37,7 +37,10 @@ (loop (let ((form (read in nil token))) (when (eq form token) (return)) (funcall func form))))) - (print-form (form) + (princ-form (form) + (format t "~@[~{~A~^ ~}~%~]" + (multiple-value-list (eval form)))) + (prin1-form (form) (format t "~@[~{~S~^ ~}~%~]" (multiple-value-list (eval form))))) (loop (let ((arg (pop args))) @@ -49,8 +52,11 @@ (#\! (push (lambda () (foreach-form #'eval rest)) list)) + (#\= (push (lambda () + (foreach-form #'princ-form rest)) + list)) (#\? (push (lambda () - (foreach-form #'print-form rest)) + (foreach-form #'prin1-form rest)) list)) (#\< (push (lambda () (load rest))