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