Check if an optional token may start a direct declarator.
(token-direct-declarator-start-p token?) → yes/no
This may start with an identifier or an open parenthesis.
Function:
(defun token-direct-declarator-start-p (token?) (declare (xargs :guard (token-optionp token?))) (let ((__function__ 'token-direct-declarator-start-p)) (declare (ignorable __function__)) (or (and token? (token-case token? :ident)) (token-punctuatorp token? "("))))
Theorem:
(defthm booleanp-of-token-direct-declarator-start-p (b* ((yes/no (token-direct-declarator-start-p token?))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm non-nil-when-token-direct-declarator-start-p (implies (token-direct-declarator-start-p token?) token?) :rule-classes :compound-recognizer)