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