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