code: def ConsumeInteger(self, is_long=False):
      
      try:
        result = _ParseAbstractInteger(self.token, is_long=is_long)
      except ValueError as e:
        raise self.ParseError(str(e))
      self.NextToken()
      return result
docs: Consumes an integer number.
  
      Args:
        is_long: True if the value should be returned as a long integer.
      Returns:
        The integer parsed.
  
      Raises:
        ParseError: If an integer couldn't be consumed.