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