def add_debug_actions(self): HEXNUM.addParseAction(lambda x: self.debugLog("Hexnum %s" % str(x))) REGISTER.addParseAction( lambda x: self.debugLog("Register %s" % str(x))) CONNECTIVE.addParseAction( lambda x: self.debugLog("Connective %s" % str(x))) EQ_SYMBOL.addParseAction( lambda x: self.debugLog("Eqsymbol %s" % str(x))) MEMREF.addParseAction(lambda x: self.debugLog("Memref %s" % str(x))) RELATION.addParseAction( lambda x: self.debugLog("Relation %s" % str(x))) FORMULA.addParseAction(lambda x: self.debugLog("Formula %s" % str(x)))
def add_debug_actions(self): HEXNUM.addParseAction(lambda x:self.debugLog( "Hexnum %s" % str(x))) REGISTER.addParseAction(lambda x:self.debugLog( "Register %s" % str(x))) CONNECTIVE.addParseAction(lambda x:self.debugLog( "Connective %s" % str(x))) EQ_SYMBOL.addParseAction(lambda x:self.debugLog( "Eqsymbol %s" % str(x))) MEMREF.addParseAction(lambda x:self.debugLog( "Memref %s" % str(x))) RELATION.addParseAction(lambda x:self.debugLog( "Relation %s" % str(x))) FORMULA.addParseAction(lambda x:self.debugLog( "Formula %s" % str(x)))