public function AbstractLexer::isNextTokenAny in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php \Doctrine\Common\Lexer\AbstractLexer::isNextTokenAny()
Checks whether any of the given tokens matches the current lookahead.
Parameters
array $tokens:
Return value
boolean
File
- vendor/
doctrine/ lexer/ lib/ Doctrine/ Common/ Lexer/ AbstractLexer.php, line 165
Class
- AbstractLexer
- Base class for writing simple lexers, i.e. for creating small DSLs.
Namespace
Doctrine\Common\LexerCode
public function isNextTokenAny(array $tokens) {
return null !== $this->lookahead && in_array($this->lookahead['type'], $tokens, true);
}