public function init(Parser $parser, Renderer $renderer) {
        foreach ($this->ruleRenderers as $ruleRenderer) {
            $renderer->registerRenderer($ruleRenderer, $this->name);
        }

        $parser->setRenderer($renderer);

        return $this;
    }
public function init(Parser $parser, Renderer $renderer) {
        foreach ($this->ruleRenderers as $ruleRenderer) {
            $renderer->registerRenderer($ruleRenderer, $this->name);
        }

        $parser->setRenderer($renderer);

        return $this;
    }
public function init ( Parser $ parser , Renderer $ renderer ) { foreach ( $ this -> ruleRenderers as $ ruleRenderer ) { $ renderer -> registerRenderer ( $ ruleRenderer , $ this -> name ) ; } $ parser -> setRenderer ( $ renderer ) ; return $ this ; }
Set rule renderers to renderer and set renderer to parser

@param \ViKon\Parser\Parser            $parser
@param \ViKon\Parser\Renderer\Renderer $renderer

@return $this
Set rule renderers to renderer and set renderer to parser