You are here

public function AbstractLexer::isNextTokenAny in Plug 7

Checks whether any of the given tokens matches the current lookahead.

Parameters

array $tokens:

Return value

boolean

File

lib/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\Lexer

Code

public function isNextTokenAny(array $tokens) {
  return null !== $this->lookahead && in_array($this->lookahead['type'], $tokens, true);
}