code: def TryConsume(self, token):
      
      if self.token == token:
        self.NextToken()
        return True
      return False
docs: Tries to consume a given piece of text.
  
      Args:
        token: Text to consume.
  
      Returns:
        True iff the text was consumed.