parameters: (self)
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.
      """
      if self.token in ('true', 't', '1'):
        self.NextToken()
        return True
      elif self.token in ('false', 'f', '0'):
        self.NextToken()
        return False
      else:
        raise self._ParseError('Expected "true" or "false".')
function_tokens: def ConsumeBool ( self ) : if self . token in ( 'true' , 't' , '1' ) : self . NextToken ( ) return True elif self . token in ( 'false' , 'f' , '0' ) : self . NextToken ( ) return False else : raise self . _ParseError ( 'Expected "true" or "false".' )