public function compile($code, $name = null)
{
$this->indentLevel = -1;
$this->commentsSeen = array();
$this->extends = array();
$this->extendsMap = array();
$locale = setlocale(LC_NUMERIC, 0);
setlocale(LC_NUMERIC, "C");
$this->parsedFiles = array();
$this->parser = new titanscss_parser($name);
$tree = $this->parser->parse($code);
$this->formatter = new $this->formatter();
$this->env = null;
$this->scope = null;
$this->compileRoot($tree);
$out = $this->formatter->format($this->scope);
setlocale(LC_NUMERIC, $locale);
return $out;
}