code: def seek(self, pos):
          
          if self.debug:
              logging.debug('seek: %r' % pos)
          self.fp.seek(pos)
          # reset the status for nextline()
          self.bufpos = pos
          self.buf = b''
          self.charpos = 0
          # reset the status for nexttoken()
          self._parse1 = self._parse_main
          self._curtoken = b''
          self._curtokenpos = 0
          self._tokens = []
          return
docs: Seeks the parser to the given position.