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