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