Construct an XDOC tree for XDOC code block
See the
Macro:
(defmacro code (&rest args) (mv-let (trees attributes) (partition-macro-args args 'code) (let ((attributes (keyword-macro-args-to-terms attributes))) (list 'code-fn (cons 'list attributes) (cons 'list trees)))))
Function:
(defun code-fn (attributes trees) (declare (xargs :guard (and (keyword-tree-alistp attributes) (tree-listp trees)))) (make-tree-tag :code attributes trees))
Theorem:
(defthm stringp-of-code (equal (treep (code-fn attributes trees)) (and (keyword-tree-alistp attributes) (tree-listp trees))))