Encode one full line from the STV into XML for XDOC.
(stv-line-to-xml line expansion acc) → acc
Function:
(defun stv-line-to-xml (line expansion acc) (declare (xargs :guard (and (true-listp line) (true-listp expansion)))) (let ((__function__ 'stv-line-to-xml)) (declare (ignorable __function__)) (b* ((acc (str::revappend-chars "<stv_line>" acc)) (acc (str::revappend-chars "<stv_name>" acc)) (acc (stv-name-to-xml (car line) acc)) (acc (str::revappend-chars "</stv_name>" acc)) (acc (stv-entries-to-xml (cdr line) (cdr expansion) acc)) (acc (str::revappend-chars "</stv_line>" acc)) (acc (cons #\Newline acc))) acc)))
Theorem:
(defthm character-listp-of-stv-line-to-xml (implies (character-listp acc) (b* ((acc (stv-line-to-xml line expansion acc))) (character-listp acc))) :rule-classes :rewrite)