code: def set_grammar_names():
      
      for varname, val in vars(Grammar).items():
          if isinstance(val, ParserElement):
              setattr(Grammar, varname, val.setName(varname))
docs: Set names of grammar elements to their variable names.