Add PRODUCE-COMMENT
This commit is contained in:
parent
8dd78265b4
commit
5ca740efa9
1 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,9 @@
|
|||
(push label *compile-result*)
|
||||
label)
|
||||
|
||||
(defun produce-comment (text)
|
||||
(push text *compile-result*))
|
||||
|
||||
(defmacro format-inst (destination control-string &rest format-arguments)
|
||||
`(format ,destination "~C~A~%" #\Tab (format nil ,control-string ,@format-arguments)))
|
||||
|
||||
|
@ -49,7 +52,7 @@
|
|||
((%next :accessor next :accessor normal-next :initform nil)))
|
||||
|
||||
(defmethod generate-code :before ((node node))
|
||||
(format t ";; ~A~%" node))
|
||||
(produce-comment (format nil "~A" node)))
|
||||
|
||||
(defmethod generate-code :after ((node node))
|
||||
(terpri))
|
||||
|
|
Loading…
Add table
Reference in a new issue