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