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