src/Katar.php
private function compileString($str) {
        $result = null;
        try {
            $result = $this->parser->compile($str);
        } catch (\Exception $e) {
            throw new SyntaxErrorException("Syntax error in $this->currFile: "
                . $e->getMessage());
        }

        return $result;
    }
private function compileString($str) {
        $result = null;
        try {
            $result = $this->parser->compile($str);
        } catch (\Exception $e) {
            throw new SyntaxErrorException("Syntax error in $this->currFile: "
                . $e->getMessage());
        }

        return $result;
    }
Compiles a string containing Katar source code onto PHP

@param string $str The string to be compiled

@return Compiled PHP source code