src/Factory.php
public function createParser($name)
    {
        $parser = new Parser();

        $parser->setServer($this->createServer($name));

        $compiler = new Compiler(
            $parser->getServer()->getStartMultiLine(),
            $parser->getServer()->getEndMultiLine(),
            $parser->getServer()->getSimpleDirective()
        );

        $parser->setCompiler($compiler);

        return $parser;
    }
public function createParser($name)
    {
        $parser = new Parser();

        $parser->setServer($this->createServer($name));

        $compiler = new Compiler(
            $parser->getServer()->getStartMultiLine(),
            $parser->getServer()->getEndMultiLine(),
            $parser->getServer()->getSimpleDirective()
        );

        $parser->setCompiler($compiler);

        return $parser;
    }
public function createParser ( $ name ) { $ parser = new Parser ( ) ; $ parser -> setServer ( $ this -> createServer ( $ name ) ) ; $ compiler = new Compiler ( $ parser -> getServer ( ) -> getStartMultiLine ( ) , $ parser -> getServer ( ) -> getEndMultiLine ( ) , $ parser -> getServer ( ) -> getSimpleDirective ( ) ) ; $ parser -> setCompiler ( $ compiler ) ; return $ parser ; }
Builds a parser instance.

@param string $name a server specification name

@return ParserInterface a parser instance
Builds a parser instance .