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