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