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