Basic constructor macro for expr-memberp structures.
(make-expr-memberp [:arg <arg>] [: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 '((:arg) (:name)) 'make-expr-memberp nil))
Function:
(defun expr-memberp (arg name) (declare (xargs :guard (and (exprp arg) (identp name)))) (declare (xargs :guard t)) (let ((__function__ 'expr-memberp)) (declare (ignorable __function__)) (b* ((arg (mbe :logic (expr-fix arg) :exec arg)) (name (mbe :logic (ident-fix name) :exec name))) (cons :memberp (list arg name)))))