def setUp(self): self.duplicateQuestions = DuplicateQuestions() self.undefinedQuestions = UndefinedQuestions() self.nonBoolean = NonBooleanTypes() self.nonOperand = NonOperandTypes() self.nonExpressions = NonExpressions() self.parser = Parser() self.checker = TypeChecker() self.checker.register(self.duplicateQuestions) self.checker.register(self.undefinedQuestions) self.checker.register(self.nonBoolean) self.checker.register(self.nonOperand) self.checker.register(self.nonExpressions)
def __init__(self, debug=False, storage=None, *args, **kwargs): tk.Tk.__init__(self, *args, **kwargs) self.storageDirectory = storage self.title('Questionnaire Language (QL)') self.buildWidgets() self.parser = Parser(debug=debug) # To keep output in order self.widgets = OrderedDict() self.answers = OrderedDict() self.questions = [] self.branches = []
def setUp(self): self.parser = Parser()