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