code: function getEnums(spec_c, bygroup, parent) {
    var spec_js = {};
    var enumGroups = _.find(getChildren(spec_c, 'sectiondef'), function(section) {
      var kind = getAttr(section, 'kind');
      return ((kind == 'enum') || (kind == 'public-type'));
    });
    if (enumGroups) {
      _.each(enumGroups.children, function(enumGroup) {
        var enumGroupName = getText(getChild(enumGroup, 'name'), 'name');
        var enumGroupDescription = getText(getChild(enumGroup, 'detaileddescription'), 'description');
        var enumGroupVals = getChildren(enumGroup, 'enumvalue');
        if (bygroup) {
          spec_js[enumGroupName] = {
            description: enumGroupDescription,
            members: []
          };
        }
        _.each(enumGroupVals, function(e) {
          // TODO: get prefix as option
          var enumName = getText(getChild(e, 'name'), 'name').replace(/^MRAA_/, '');
          var enumDescription = getText(getChild(e, 'detaileddescription'), 'description');
          if (!bygroup) {
            spec_js[enumName] = {
              type: enumGroupName,
              description: enumDescription
            };
          } else {
            spec_js[enumGroupName].members.push(enumName);
          }
        });
      });
    }
    return spec_js;
  }
docs: get enum specifications