<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def skip(parser, kind):
 # type: (Parser, int) -> bool """If the next token is of the given kind, return true after advancing the parser. Otherwise, do not change the parser state and throw an error."""

    match = parser.token.kind == kind
    if match:
        advance(parser)

    return match