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