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