Basic constructor macro for escape-hex structures.
(make-escape-hex [:unwrap <unwrap>])
This is the usual way to construct escape-hex structures. It simply conses together a structure with the specified fields.
This macro generates a new escape-hex structure from scratch. See also change-escape-hex, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-escape-hex (&rest args) (std::make-aggregate 'escape-hex args '((:unwrap)) 'make-escape-hex nil))
Function:
(defun escape-hex (unwrap) (declare (xargs :guard (hex-digit-char-listp unwrap))) (declare (xargs :guard t)) (let ((__function__ 'escape-hex)) (declare (ignorable __function__)) (b* ((unwrap (mbe :logic (str::hex-digit-char-list-fix unwrap) :exec unwrap))) (cons :hex (list unwrap)))))