code: function getSortedRuleValues(grammar) {
    return Object.keys(grammar.rules).sort().map(function(name) { return grammar.rules[name]; });
  }
docs: -------------------------------------------------------------------- Private stuff --------------------------------------------------------------------