Basic constructor macro for matchstate structures.
(make-matchstate [:index <index>] [:backrefs <backrefs>])
This is the usual way to construct matchstate structures. It simply conses together a structure with the specified fields.
This macro generates a new matchstate structure from scratch. See also change-matchstate, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-matchstate (&rest args) (std::make-aggregate 'matchstate args '((:index) (:backrefs)) 'make-matchstate nil))
Function:
(defun matchstate (index backrefs) (declare (xargs :guard (and (natp index) (backref-alist-p backrefs)))) (declare (xargs :guard t)) (let ((__function__ 'matchstate)) (declare (ignorable __function__)) (b* ((index (mbe :logic (nfix index) :exec index)) (backrefs (mbe :logic (backref-alist-fix backrefs) :exec backrefs))) (std::prod-hons index backrefs))))