code: function(value)
  	{
  		var result = null;
  		value = this.trim(value);
  
  		if ( 0 == value.length )
  		{
  			return '';
  		}
  
  		switch ( value.charAt(0) )
  		{
  			case '[':
  				result = this.parseSequence(value);
  				break;
  			case '{':
  				result = this.parseMapping(value);
  				break;
  			default:
  				result = this.parseScalar(value);
  		}
  
  		// some comment can end the scalar
  		if ( value.substr(this.i+1).replace(/^\s*#.*$/, '') != '' ) {
  		    console.log("oups "+value.substr(this.i+1));
  			throw new YamlParseException('Unexpected characters near "'+value.substr(this.i)+'".');
  		}
  
  		return result;
  	}
docs: Convert a YAML string to a JS object.
  
  @param string value A YAML string
  
  @return object A JS object representing the YAML string