def setupParseActions(self): HEXNUM.setParseAction(self.createConstExpr) REGISTER.setParseAction(self.getRegisterExpr) CONNECTIVE.setParseAction(self.createNewLogicExpr) EQ_SYMBOL.setParseAction(self.createEqSymbol) MEMREF.setParseAction(self.createNewMemref) RELATION.setParseAction(self.createNewRelation) FORMULA.setParseAction(self.createNewFormula)
def clearParseActions(self): HEXNUM.setParseAction(lambda x: x) REGISTER.setParseAction(lambda x: x) CONNECTIVE.setParseAction(lambda x: x) EQ_SYMBOL.setParseAction(lambda x: x) MEMREF.setParseAction(lambda x: x) RELATION.setParseAction(lambda x: x) FORMULA.setParseAction(lambda x: x)
def clearParseActions(self): HEXNUM.setParseAction(lambda x:x) REGISTER.setParseAction(lambda x:x) CONNECTIVE.setParseAction(lambda x:x) EQ_SYMBOL.setParseAction(lambda x:x) MEMREF.setParseAction(lambda x:x) RELATION.setParseAction(lambda x:x) FORMULA.setParseAction(lambda x:x)