예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)