Print a character or escape sequence usable in string literals, after preprocessing.
(pprint-s-char schar bytes) → new-bytes
Function:
(defun pprint-s-char (schar bytes) (declare (xargs :guard (and (s-char-p schar) (byte-listp bytes)))) (let ((__function__ 'pprint-s-char)) (declare (ignorable __function__)) (s-char-case schar :char (b* (((unless (grammar-character-p schar.code)) (raise "Internal error: bad character code ~x0." schar.code))) (pprint-char schar.code bytes)) :escape (pprint-escape schar.escape bytes))))
Theorem:
(defthm byte-listp-of-pprint-s-char (b* ((new-bytes (pprint-s-char schar bytes))) (byte-listp new-bytes)) :rule-classes :rewrite)