src/ContainerParser/ContainerParser.php
protected function getRemainingTokens(bool $skip = false) : array
    {
        $tokens = array();

        while (!$this->parserIsDone()) 
        {
            $tokens[] = $this->currentToken(); $this->skipToken();
        }

        if (!$skip)
        {
            $this->index -= count($tokens);
        }

        return $tokens;
    }
protected function getRemainingTokens(bool $skip = false) : array
    {
        $tokens = array();

        while (!$this->parserIsDone()) 
        {
            $tokens[] = $this->currentToken(); $this->skipToken();
        }

        if (!$skip)
        {
            $this->index -= count($tokens);
        }

        return $tokens;
    }
Return all remaining tokens

@param string                    $skip
@return array[T]