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