Attempts to match the current lookahead token with any of the given tokens.
If any of them matches, this method updates the lookahead token; otherwise a syntax error is raised.
array $tokens:
bool
private function matchAny(array $tokens) {
if (!$this->lexer
->isNextTokenAny($tokens)) {
$this
->syntaxError(implode(' or ', array_map(array(
$this->lexer,
'getLiteral',
), $tokens)));
}
return $this->lexer
->moveNext();
}