'Accept either a single semi-colon or an empty string.
Returns:
True
Raises:
BadQueryError if there are unconsumed symbols in the query.'

def __AcceptTerminal(self):

    self.__Accept(';')
    if (self.__next_symbol < len(self.__symbols)):
        self.__Error('Expected    no    additional    symbols')
    return True
