public function compile($name, $target, $indent = 0) { if (!($this->fp = fopen($target, 'wb'))) { throw new \RuntimeException('unable to create target file: ' . $target); } $this->node->compile($name, $this, $indent); fclose($this->fp); }