Basic constructor macro for escape-hex structures.
(make-escape-hex [:escape <escape>])
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 '((:escape)) 'make-escape-hex nil))
Function:
(defun escape-hex (escape) (declare (xargs :guard (hex-digit-char-listp escape))) (declare (xargs :guard t)) (b* ((escape (mbe :logic (str::hex-digit-char-list-fix escape) :exec escape))) (cons :hex escape)))