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