def opPair(tokenlist):
    """Return pairs of tokens to the caller as a generator."""
    it = iter(tokenlist)
    while 1:
        try:
            yield next(it), next(it)
        except StopIteration:
            break
