Match
(vl-parse-list-of-variable-identifiers &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Grammar:
list_of_variable_identifiers ::= variable_type { ',' variable_type }
Function:
(defun vl-parse-list-of-variable-identifiers-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-list-of-variable-identifiers)) (declare (ignorable __function__)) (seq tokstream (first := (vl-parse-variable-type)) (when (vl-is-token? :vl-comma) (:= (vl-match)) (rest := (vl-parse-list-of-variable-identifiers))) (return (cons first rest)))))
Theorem:
(defthm vl-parse-list-of-variable-identifiers-fails-gracefully (implies (mv-nth 0 (vl-parse-list-of-variable-identifiers)) (not (mv-nth 1 (vl-parse-list-of-variable-identifiers)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-list-of-variable-identifiers (iff (vl-warning-p (mv-nth 0 (vl-parse-list-of-variable-identifiers))) (mv-nth 0 (vl-parse-list-of-variable-identifiers))))
Theorem:
(defthm vl-parse-list-of-variable-identifiers-result (implies (and t) (vl-vardeclassignlist-p (mv-nth 1 (vl-parse-list-of-variable-identifiers)))))
Theorem:
(defthm vl-parse-list-of-variable-identifiers-true-listp (true-listp (mv-nth 1 (vl-parse-list-of-variable-identifiers))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-list-of-variable-identifiers-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-variable-identifiers))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-list-of-variable-identifiers))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-variable-identifiers))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))