protected function getCompiler()
    {
        if ($this->compiler === null) {
            $this->compiler = new Compiler();
            $this->compiler->setFormatter($this->formatter);
        }
        return $this->compiler;
    }