Basic constructor macro for expression-unary structures.
(make-expression-unary [:op <op>]
[:arg <arg>])
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 '((:op) (:arg)) 'make-expression-unary nil))
Function:
(defun expression-unary (op arg) (declare (xargs :guard (and (unopp op) (expressionp arg)))) (declare (xargs :guard t)) (let ((__function__ 'expression-unary)) (declare (ignorable __function__)) (b* ((op (mbe :logic (unop-fix op) :exec op)) (arg (mbe :logic (expression-fix arg) :exec arg))) (cons :unary (list op arg)))))