code: 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;
      }
docs: Compiles a string containing Katar source code onto PHP
  
  @param string $str The string to be compiled
  
  @return Compiled PHP source code