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