def grammar(): grams = getClientGrams() + getNewClientGrams() return compile("".join(grams))
def grammar(): utilGrams = getUtilGrams() nodeGrams = getNodeGrams() clientGrams = getClientGrams() grams = getAllGrams(utilGrams, nodeGrams, clientGrams) return compile("".join(grams))
def initializeGrammar(self): self.clientGrams = getClientGrams() + getNewClientGrams() super().initializeGrammar()