'Seeks the parser to the given position.'

def seek(self, pos):

    if (2 <= self.debug):
        print >>sys.stderr, ('seek:    %r' % pos)
    self.fp.seek(pos)
    self.bufpos = pos
    self.buf = ''
    self.charpos = 0
    self._parse1 = self._parse_main
    self._curtoken = ''
    self._curtokenpos = 0
    self._tokens = []
    return
