Check whether the current token is one of some particular types.
(vl-is-some-token? types &key (tokstream 'tokstream)) → bool
Function:
(defun vl-is-some-token?$inline (types tokstream) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-tokentypelist-p types))) (let ((__function__ 'vl-is-some-token?)) (declare (ignorable __function__)) (b* ((tokens (vl-tokstream->tokens))) (and (consp tokens) (member-eq (vl-token->type (car tokens)) types) t))))
Theorem:
(defthm vl-is-some-token?-when-atom-of-tokens (implies (atom (vl-tokstream->tokens)) (equal (vl-is-some-token? type) nil)))
Theorem:
(defthm vl-is-some-token?-when-atom-of-types (implies (atom types) (equal (vl-is-some-token? types) nil)))