protected function matchAny(array $types)
    {
        if ( ! $this->lexer->isNextAny($types)) {
            $this->syntaxError('any of '.implode(' or ', array_map(array($this->lexer, 'getName'), $types)));
        }

        $this->lexer->moveNext();

        return $this->lexer->token[0];
    }
protected function matchAny(array $types)
    {
        if ( ! $this->lexer->isNextAny($types)) {
            $this->syntaxError('any of '.implode(' or ', array_map(array($this->lexer, 'getName'), $types)));
        }

        $this->lexer->moveNext();

        return $this->lexer->token[0];
    }
protected function matchAny ( array $ types ) { if ( ! $ this -> lexer -> isNextAny ( $ types ) ) { $ this -> syntaxError ( 'any of ' . implode ( ' or ' , array_map ( array ( $ this -> lexer , 'getName' ) , $ types ) ) ) ; } $ this -> lexer -> moveNext ( ) ; return $ this -> lexer -> token [ 0 ] ; }
Matches any of the passed tokens, and returns the matched token's value.

@param array<integer> $types

@return mixed
Matches any of the passed tokens and returns the matched token s value .