/** * Výsledný textový výstup * * @param string * @return string */ protected function compile($input) { $locale = setlocale(LC_NUMERIC, 0); setlocale(LC_NUMERIC, "C"); $tree = $this->parser->parse($input); $reduced = $this->analyzer->analyze($tree, $this->variables); $output = $this->generator->generate($reduced, $this->defaultUnit); setlocale(LC_NUMERIC, $locale); return $output; }