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