'Consume the LIMIT clause.'

def __Limit(self):

    if self.__Accept('LIMIT'):
        maybe_limit = self.__AcceptRegex(self.__number_regex)
        if maybe_limit:
            if self.__Accept(','):
                self.__offset = int(maybe_limit)
                if (self.__offset < 0):
                    self.__Error('Bad    offset    in    LIMIT    Value')
                else:
                    logging.log(LOG_LEVEL, 'Set    offset    to    %i', self.__offset)
                    maybe_limit = self.__AcceptRegex(self.__number_regex)
            self.__limit = int(maybe_limit)
            if (self.__limit < 1):
                self.__Error('Bad    Limit    in    LIMIT    Value')
            else:
                logging.log(LOG_LEVEL, 'Set    limit    to    %i', self.__limit)
        else:
            self.__Error('Non-number    limit    in    LIMIT    clause')
    return self.__Offset()
