code: function grammarToString(grammarName) {
          return grammarRules(grammarName).map(function (r) { return r.fullName + " <- " + r.definition; }).join('\n');
      }
docs: Creates a string representation of a grammar