Given a :nonleaf tree for rulename "single-quoted-printable" or "double-quoted-printable", returns a string-element-char.
(cst2ast-quoted-printable subtree double-quoted-p) → element
Function:
(defun cst2ast-quoted-printable (subtree double-quoted-p) (declare (xargs :guard (and (abnf::treep subtree) (booleanp double-quoted-p)))) (declare (ignorable double-quoted-p)) (let ((__function__ 'cst2ast-quoted-printable)) (declare (ignorable __function__)) (b* (((unless (and (abnf::treep subtree) (abnf::tree-case subtree :nonleaf))) (reserrf "unexpected input to cst2ast-quoted-printable")) (fringe (abnf::tree->string subtree)) ((unless (and (equal (len fringe) 1) (unsigned-byte-p 8 (car fringe)))) (reserrf "unexpected input to cst2ast-quoted-printable 2"))) (make-string-element-char :get (code-char (car fringe))))))
Theorem:
(defthm string-element-resultp-of-cst2ast-quoted-printable (b* ((element (cst2ast-quoted-printable subtree double-quoted-p))) (string-element-resultp element)) :rule-classes :rewrite)