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