def anyToken(theGen):
    """A function that always reads one token.
    This can be used as the last registered function to ensure that the token
    stream is read to completion. The kind returned is None."""
    try:
        next(theGen)
    except StopIteration:
        return 0, None, None
    return 1, None, None
