Parses [ '(' [tf_port_list] ')' ].
(vl-parse-very-optional-tf-port-list &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-very-optional-tf-port-list-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-very-optional-tf-port-list)) (declare (ignorable __function__)) (seq tokstream (unless (vl-is-token? :vl-lparen) (return nil)) (:= (vl-match-token :vl-lparen)) (unless (vl-is-token? :vl-rparen) (portdecls := (vl-parse-tf-port-list))) (:= (vl-match-token :vl-rparen)) (return portdecls))))
Theorem:
(defthm vl-parse-very-optional-tf-port-list-fails-gracefully (implies (mv-nth 0 (vl-parse-very-optional-tf-port-list)) (not (mv-nth 1 (vl-parse-very-optional-tf-port-list)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-very-optional-tf-port-list (iff (vl-warning-p (mv-nth 0 (vl-parse-very-optional-tf-port-list))) (mv-nth 0 (vl-parse-very-optional-tf-port-list))))
Theorem:
(defthm vl-parse-very-optional-tf-port-list-result (implies (and t) (vl-portdecllist-p (mv-nth 1 (vl-parse-very-optional-tf-port-list)))))
Theorem:
(defthm vl-parse-very-optional-tf-port-list-count-strong-on-value (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-very-optional-tf-port-list))) (vl-tokstream-measure)) (implies (mv-nth 1 (vl-parse-very-optional-tf-port-list)) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-very-optional-tf-port-list))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))