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