code: def parse_file(self, inputstring, addhash=True):
          
          if addhash:
              use_hash = self.genhash(False, inputstring)
          else:
              use_hash = None
          return self.parse(inputstring, self.file_parser, {"nl_at_eof_check": True}, {"header": "file", "use_hash": use_hash})
docs: Parse file code.