Raising stopiteration with end the parse.

def ahead(self, i, j=None):
        '''Raising stopiteration with end the parse.
        '''
        if j is None:
            return self._stream[self.i + i]
        else:
            return self._stream[self.i + i: self.i + j]