private function matchAny(array $tokens)
    {
        if (!$this->lexer->isNextTokenAny($tokens)) {
            throw SyntaxException::expectedToken(
                implode(
                    ' or ',
                    array_map(array($this->lexer, 'getLiteral'), $tokens)
                ),
                null,
                $this->lexer
            );
        }

        return $this->lexer->moveNext();
    }
private function matchAny(array $tokens)
    {
        if (!$this->lexer->isNextTokenAny($tokens)) {
            throw SyntaxException::expectedToken(
                implode(
                    ' or ',
                    array_map(array($this->lexer, 'getLiteral'), $tokens)
                ),
                null,
                $this->lexer
            );
        }

        return $this->lexer->moveNext();
    }
private function matchAny ( array $ tokens ) { if ( ! $ this -> lexer -> isNextTokenAny ( $ tokens ) ) { throw SyntaxException :: expectedToken ( implode ( ' or ' , array_map ( array ( $ this -> lexer , 'getLiteral' ) , $ tokens ) ) , null , $ this -> lexer ) ; } return $ this -> lexer -> moveNext ( ) ; }
Matches any one of the tokens and advances.

@param array $tokens The list of tokens.

@return boolean TRUE if the next token matches, FALSE if not.

@throws Exception
@throws SyntaxException If a syntax error is found.
Matches any one of the tokens and advances .