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