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