code: function(mapping, i)
  	{
  		if ( i == undefined ) i = 0;
  		var output = {};
  		var len = mapping.length;
  		i += 1;
  		var done = false;
  		var doContinue = false;
  
  		// {foo: bar, bar:foo, ...}
  		while ( i < len )
  		{
  			doContinue = false;
  			
  			switch ( mapping.charAt(i) )
  			{
  				case ' ':
  				case ',':
  					i++;
  					doContinue = true;
  					break;
  				case '}':
  					this.i = i;
  					return output;
  			}
  			
  			if ( doContinue ) continue;
  
  			// key
  			var key = this.parseScalar(mapping, [':', ' '], ['"', "'"], i, false);
  			i = this.i;
  
  			// value
  			done = false;
  			while ( i < len )
  			{
  				switch ( mapping.charAt(i) )
  				{
  					case '[':
  						// nested sequence
  						output[key] = this.parseSequence(mapping, i);
  						i = this.i;
  						done = true;
  						break;
  					case '{':
  						// nested mapping
  						output[key] = this.parseMapping(mapping, i);
  						i = this.i;
  						done = true;
  						break;
  					case ':':
  					case ' ':
  						break;
  					default:
  						output[key] = this.parseScalar(mapping, [',', '}'], ['"', "'"], i);
  						i = this.i;
  						done = true;
  						i--;
  				}
  
  				++i;
  
  				if ( done )
  				{
  					doContinue = true;
  					break;
  				}
  			}
  			
  			if ( doContinue ) continue;
  		}
  
  		throw new YamlParseException('Malformed inline YAML string "'+mapping+'"');
  	}
docs: Parses a mapping to a YAML string.
  
  @param string mapping
  @param integer i
  
  @return string A YAML string
  
  @throws YamlParseException When malformed inline YAML string is parsed