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