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