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