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