coordle/backend/coordle_backend.py
def _preprocess_query(self, query: str) -> tuple:
        '''
        Preprocesses the query before parsing 

        Returns queryqueue, a deque that contains strings and deques. 
        '''
        querytokens: deque = self.get_logical_querytokens(query)
        
        # Assert that query is well formatted
        errmsgs = []

        # Happens if no query tokens
        if querytokens is None:
            return deque(), errmsgs

        if not self.assert_query(querytokens, errmsgs):
            return None, errmsgs

        # "Preprocess tokens" by cleaning tokens that are terms (words)
        querytokens = self.clean_tokens(querytokens)

        # Handle parenthesis 
        queryqueue = self.parenthesis_handler(querytokens)

        return queryqueue, errmsgs

        Preprocesses the query before parsing 

        Returns queryqueue, a deque that contains strings and deques. 
        
Preprocesses the query before parsing
Returns queryqueue, a deque that contains strings and deques.
Preprocesses the query before parsing Returns queryqueue a deque that contains strings and deques .
def _preprocess_query(self, query: str) -> tuple:
        querytokens: deque = self.get_logical_querytokens(query)
        errmsgs = []
        if querytokens is None:
            return deque(), errmsgs
        if not self.assert_query(querytokens, errmsgs):
            return None, errmsgs
        querytokens = self.clean_tokens(querytokens)
        queryqueue = self.parenthesis_handler(querytokens)
        return queryqueue, errmsgs
def _preprocess_query ( self , query : str ) -> tuple : querytokens : deque = self . get_logical_querytokens ( query ) errmsgs = [ ] if querytokens is None : return deque ( ) , errmsgs if not self . assert_query ( querytokens , errmsgs ) : return None , errmsgs querytokens = self . clean_tokens ( querytokens ) queryqueue = self . parenthesis_handler ( querytokens ) return queryqueue , errmsgs
Preprocesses the query before parsing
Returns queryqueue, a deque that contains strings and deques.
Preprocesses the query before parsing Returns queryqueue a deque that contains strings and deques .
'''
        Preprocesses the query before parsing 

        Returns queryqueue, a deque that contains strings and deques. 
        ''' # Assert that query is well formatted # Happens if no query tokens # "Preprocess tokens" by cleaning tokens that are terms (words) # Handle parenthesis 
self
query
str