Matches
(vl-parse-function-data-type-or-implicit &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Grammar rules:
function_data_type_or_implicit ::= data_type_or_void | implicit_data_type data_type_or_void ::= data_type | 'void'
Function:
(defun vl-parse-function-data-type-or-implicit-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-function-data-type-or-implicit)) (declare (ignorable __function__)) (seq tokstream (when (vl-is-token? :vl-kwd-void) (return (make-vl-coretype :name :vl-void))) (ans := (vl-parse-datatype-or-implicit)) (return ans))))
Theorem:
(defthm vl-parse-function-data-type-or-implicit-fails-gracefully (implies (mv-nth 0 (vl-parse-function-data-type-or-implicit)) (not (mv-nth 1 (vl-parse-function-data-type-or-implicit)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-function-data-type-or-implicit (iff (vl-warning-p (mv-nth 0 (vl-parse-function-data-type-or-implicit))) (mv-nth 0 (vl-parse-function-data-type-or-implicit))))
Theorem:
(defthm vl-parse-function-data-type-or-implicit-result (implies (and (not (mv-nth 0 (vl-parse-function-data-type-or-implicit))) (and t)) (vl-datatype-p (mv-nth 1 (vl-parse-function-data-type-or-implicit)))))
Theorem:
(defthm vl-parse-function-data-type-or-implicit-count-weak (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-function-data-type-or-implicit))) (vl-tokstream-measure)) :rule-classes ((:rewrite) (:linear)))