code: function parse(schema, opts) {
    var attrs = files.load(schema);
    return attrs.protocol ?
      protocols.createProtocol(attrs, opts) :
      types.createType(attrs, opts);
  }
docs: Parse a schema and return the corresponding type or protocol.