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