src/ContainerParser/ContainerParser.php
protected function parseChild(string $parserClassName, $tokens = null, $skip = true)
    {
        if (is_null($tokens))
        {
            $tokens = $this->getRemainingTokens(); 
        }

        $parser = new $parserClassName($tokens);
        $node = $parser->parse();

        // Update the current index based on the work of the child parser.
        if ($skip) 
        {
            $this->skipToken($parser->getParsedTokensCount());
        }

        // finally return the parsed node
        return $node;
    }
protected function parseChild(string $parserClassName, $tokens = null, $skip = true)
    {
        if (is_null($tokens))
        {
            $tokens = $this->getRemainingTokens(); 
        }

        $parser = new $parserClassName($tokens);
        $node = $parser->parse();

        // Update the current index based on the work of the child parser.
        if ($skip) 
        {
            $this->skipToken($parser->getParsedTokensCount());
        }

        // finally return the parsed node
        return $node;
    }
Starts a new parser with the remaining or given tokens

@param string                $parserClassName
@param array                 $tokens
@param bool                  $skip
@return Node