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