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