Basic constructor macro for struni-spec structures.
(make-struni-spec [:attribs <attribs>]
[:name? <name?>]
[:members <members>])
This is the usual way to construct struni-spec structures. It simply conses together a structure with the specified fields.
This macro generates a new struni-spec structure from scratch. See also change-struni-spec, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-struni-spec (&rest args) (std::make-aggregate 'struni-spec args '((:attribs) (:name?) (:members)) 'make-struni-spec nil))
Function:
(defun struni-spec (attribs name? members) (declare (xargs :guard (and (attrib-spec-listp attribs) (ident-optionp name?) (struct-declon-listp members)))) (declare (xargs :guard t)) (b* ((attribs (mbe :logic (attrib-spec-list-fix attribs) :exec attribs)) (name? (mbe :logic (ident-option-fix name?) :exec name?)) (members (mbe :logic (struct-declon-list-fix members) :exec members))) (cons attribs (cons name? members))))