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)))
|
||||
(apply #'concatenate 'string
|
||||
(append (loop for binding in bindings
|
||||
collect (format nil "~(~a ~a~)~@[ = ~a~];~%" (second binding) (first binding)
|
||||
(walk-list (cddr binding))))
|
||||
collect (format nil "~@[~vt~]~(~a ~a~)~@[ = ~a~];~%"
|
||||
(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)))))
|
||||
|
||||
(defun default-handler (first &rest rest)
|
||||
"Handle a simple function call."
|
||||
(format nil "~@[~vt~]~(~a~) (~{~a~^, ~});~%"
|
||||
(format nil "~@[~vt~]~(~a (~{~a~^, ~})~);~%"
|
||||
(when (> *current-indent* 0)
|
||||
*current-indent*)
|
||||
(if (symbolp first)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue