code: function(scalar)
  	{
  		scalar = this.trim(scalar);
  		
  		var raw = null;
  		var cast = null;
  
  		if (	( 'null' == scalar.toLowerCase() ) ||
  				( '' == scalar ) ||
  				( '~' == scalar ) )
  			return null;
  		if ( (scalar+'').indexOf('!str ') == 0 )
  			return (''+scalar).substring(5);
  		if ( (scalar+'').indexOf('! ') == 0 )
  			return parseInt(this.parseScalar((scalar+'').substr(2)));
  		if ( /^\d+$/.test(scalar) )
  		{
  			raw = scalar;
  			cast = parseInt(scalar);
  			return '0' == scalar.charAt(0) ? this.octdec(scalar) : (( ''+raw == ''+cast ) ? cast : raw);
  		}
  		if ( 'true' == (scalar+'').toLowerCase() )
  			return true;
  		if ( 'false' == (scalar+'').toLowerCase() )
  			return false;
  		if ( this.isNumeric(scalar) )
  			return '0x' == (scalar+'').substr(0, 2) ? this.hexdec(scalar) : parseFloat(scalar);
  		if ( scalar.toLowerCase() == '.inf' )
  			return Infinity;
  		if ( scalar.toLowerCase() == '.nan' )
  			return NaN;
  		if ( scalar.toLowerCase() == '-.inf' )
  			return -Infinity;
  		if ( /^(-|\+)?[0-9,]+(\.[0-9]+)?$/.test(scalar) )
  			return parseFloat(scalar.split(',').join(''));
  		if ( this.getTimestampRegex().test(scalar) )
  			return new Date(this.strtotime(scalar));
  		//else
  			return ''+scalar;
  	}
docs: Evaluates scalars and replaces magic values.
  
  @param string scalar
  
  @return string A YAML string