original_string: public function setCompiler($compiler)
  	{
  
  		// if param given as an object
  		if ($compiler instanceof Dwoo_ICompiler) {
  			$this->_compiler = $compiler;
  		}
  		// if param given as a string
  		elseif (is_subclass_of($compiler, 'Dwoo_Compiler') || 'Dwoo_Compiler' == $compiler) {
  			$this->_compiler = new $compiler;
  		}
  		else {
  			throw new Dwoo_Exception("Custom compiler must be a subclass of Dwoo_Compiler or instance of Dwoo_ICompiler");
  		}
  	}
code: public function setCompiler($compiler)
  	{
  
  		// if param given as an object
  		if ($compiler instanceof Dwoo_ICompiler) {
  			$this->_compiler = $compiler;
  		}
  		// if param given as a string
  		elseif (is_subclass_of($compiler, 'Dwoo_Compiler') || 'Dwoo_Compiler' == $compiler) {
  			$this->_compiler = new $compiler;
  		}
  		else {
  			throw new Dwoo_Exception("Custom compiler must be a subclass of Dwoo_Compiler or instance of Dwoo_ICompiler");
  		}
  	}
code_tokens: public function setCompiler ( $ compiler ) { // if param given as an object if ( $ compiler instanceof Dwoo_ICompiler ) { $ this -> _compiler = $ compiler ; } // if param given as a string elseif ( is_subclass_of ( $ compiler , 'Dwoo_Compiler' ) || 'Dwoo_Compiler' == $ compiler ) { $ this -> _compiler = new $ compiler ; } else { throw new Dwoo_Exception ( "Custom compiler must be a subclass of Dwoo_Compiler or instance of Dwoo_ICompiler" ) ; } }
docstring: Sets Dwoo compiler
  
  @param string|Dwoo_Compiler Object or name of the class
docstring_tokens: Sets Dwoo compiler