<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def accept_ws(buf, pos):
 """Skip whitespace at the current buffer position."""

    match = re_ws.match(buf, pos)
    if not match:
        return None, pos
    return buf[match.start(0):match.end(0)], match.end(0)