code: def get_parser(self):
          
          self.path = None
          self.anony_defs = []
          self.exhausted = False
          return self
docs: Returns a ParserFactory with the state reset so it can be used to
          parse again.
  
          :return: ParserFactory