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