def next(self):

        token = self.nextToken()
        if token is None or token.type == EOF:
            raise StopIteration
        return token
Return next token or raise StopIteration.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/antlr3/antlr3/recognizers.py/TokenSource.next