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