(vl-parse-for-variable-declaration &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-for-variable-declaration-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-for-variable-declaration)) (declare (ignorable __function__)) (seq tokstream (when (vl-is-token? :vl-kwd-var) (varp := (vl-match))) (type := (vl-parse-datatype)) (return-raw (vl-parse-1+-id=expr-pairs type (if varp t nil))))))
Theorem:
(defthm vl-parse-for-variable-declaration-fails-gracefully (implies (mv-nth 0 (vl-parse-for-variable-declaration)) (not (mv-nth 1 (vl-parse-for-variable-declaration)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-for-variable-declaration (iff (vl-warning-p (mv-nth 0 (vl-parse-for-variable-declaration))) (mv-nth 0 (vl-parse-for-variable-declaration))))
Theorem:
(defthm vl-parse-for-variable-declaration-result (implies (and t) (vl-vardecllist-p (mv-nth 1 (vl-parse-for-variable-declaration)))))
Theorem:
(defthm vl-parse-for-variable-declaration-true-listp (true-listp (mv-nth 1 (vl-parse-for-variable-declaration))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-for-variable-declaration-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-for-variable-declaration))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-for-variable-declaration))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-for-variable-declaration))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))