def consume(self, kind):
next_token = self.stream.move()<EOL>if next_token.kind != kind:<EOL><INDENT>raise UnexpectedTokenError(token=next_token, expected_kind=kind)<EOL><DEDENT>
Consume one token and verify it is of the expected kind.