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