def any_token():
    ch = peek()
    if ch is EndOfFile:
        fail(["not eof"])
    next()
    return ch
Will accept any token in the input stream and step forward.
dataset/ETHPy150Open brehaut/picoparse/picoparse/__init__.py/any_token