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