(self)
Consumes and returns a single token from the stream.
           If the stream is empty `StopIteration` is thrown
Consumes and returns a single token from the stream.
           If the stream is empty `StopIteration` is thrown
Consumes and returns a single token from the stream . If the stream is empty StopIteration is thrown
def consume_maybe(self):
        """Consumes and returns a single token from the stream.
           If the stream is empty `StopIteration` is thrown"""
        if self.extra_queue:
            return self.extra_queue.popleft()
        else:
            return next(self.generator)
def consume_maybe ( self ) : if self . extra_queue : return self . extra_queue . popleft ( ) else : return next ( self . generator )