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