 
     for dependency in dependencies {
       println("dependency:")
-      
+
       if let github = dependency.github {
         println("  github: \(github)")
       } else {

  var targetType: TargetType = .Unknown

  func parseFromString(string: String) {
    let yaml = Yaml.load(string).value!

    // Map names to processors
    let map = [
      "name":                   self.parseName,
      "sources":                self.parseSources,
      "module":                 self.parseModule,
      "framework_search_paths": self.parseFrameworkSearchPaths,
      "target_type":            self.parseTargetType,
      "dependencies":           self.parseDependencies,
    ]
    
    for (keyYaml, valueYaml) in yaml.dictionary! {
      if let key = keyYaml.string {
        if let action = map[key] {
          action(valueYaml)
          continue
        } else {
          println("Can't parse key '\(key)''")
        }
      } else {
        println("Can't parse key")
      }
    }
  }// parseFromString

  func asPackage() -> Package {

      }
    } else {
      println("Cannot parse sources")
    }
  }

  func parseModules(yaml: Yaml) {
    for moduleYaml in yaml.array! {
      parseModule(moduleYaml)
    }
  }

