Enhance output layout
This commit is contained in:
parent
f12a8076d0
commit
1a94093619
1 changed files with 9 additions and 3 deletions
|
|
@ -35,13 +35,19 @@
|
||||||
collect name)))
|
collect name)))
|
||||||
(apply #'concatenate 'string
|
(apply #'concatenate 'string
|
||||||
(append (loop for binding in bindings
|
(append (loop for binding in bindings
|
||||||
collect (format nil "~(~a ~a~)~@[ = ~a~];~%" (second binding) (first binding)
|
collect (format nil "~@[~vt~]~(~a ~a~)~@[ = ~a~];~%"
|
||||||
(walk-list (cddr binding))))
|
(when (> *current-indent* 0)
|
||||||
|
*current-indent*)
|
||||||
|
(second binding) (first binding)
|
||||||
|
(if (and (cddr binding)
|
||||||
|
(not (cdddr binding)))
|
||||||
|
(walk-1 (third binding))
|
||||||
|
(walk-list (cddr binding)))))
|
||||||
(walk-list body)))))
|
(walk-list body)))))
|
||||||
|
|
||||||
(defun default-handler (first &rest rest)
|
(defun default-handler (first &rest rest)
|
||||||
"Handle a simple function call."
|
"Handle a simple function call."
|
||||||
(format nil "~@[~vt~]~(~a~) (~{~a~^, ~});~%"
|
(format nil "~@[~vt~]~(~a (~{~a~^, ~})~);~%"
|
||||||
(when (> *current-indent* 0)
|
(when (> *current-indent* 0)
|
||||||
*current-indent*)
|
*current-indent*)
|
||||||
(if (symbolp first)
|
(if (symbolp first)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue