(defun comp-show (x) (show-fn (scheme-compile x))) (defun show-fn (fn &optional (stream *standard-output*) (depth 0)) (if (not (fn-p fn)) (format stream "~6a" fn) (progn (fresh-line) (incf depth 6) (dolist (instr (fn-code fn)) (if (atom instr) (format stream "~a:" instr) (progn (format stream "~VT" depth) (dolist (arg instr) (show-fn arg stream depth)) (fresh-line)))))))format文は,(format stream format-string args)という形で format-stringに a は式をそのまま表示し, VTは 指定された数の文字文の出力場所に表示し,
<cl> (format t "~VT~a" 10 'a) A NIL <cl> (format t "~VT~a~%~VT~a" 4 'a 8 'b) A B NIL <cl> (format t "~VT~a~&~VT~a" 10 'a 12 'b) A B NIL <cl> (format t "~VT~a~VT~a" 4 'a 8 'b) A B NIL