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