parameters: (self)
return_statement: return result
docstring: Consumes a boolean value.
  
      Returns:
        The bool parsed.
  
      Raises:
        ParseError: If a boolean value couldn't be consumed.
docstring_summary: Consumes a boolean value.
docstring_tokens: Consumes a boolean value .
function: def ConsumeBool(self):
      """Consumes a boolean value.
  
      Returns:
        The bool parsed.
  
      Raises:
        ParseError: If a boolean value couldn't be consumed.
      """
      try:
        result = ParseBool(self.token)
      except ValueError as e:
        raise self.ParseError(str(e))
      self.NextToken()
      return result
function_tokens: def ConsumeBool ( self ) : try : result = ParseBool ( self . token ) except ValueError as e : raise self . ParseError ( str ( e ) ) self . NextToken ( ) return result