Ejemplo n.º 1
0
 def __init__(self, type, location, variable):
     ExpressionNode.__init__(self, type)
     self.location = location
     self.variable = variable
Ejemplo n.º 2
0
 def __init__(self, operator, left, right):
     ExpressionNode.__init__(self, integerInstance)
     self.operator = operator
     self.exp_left = left
     self.exp_right = right
Ejemplo n.º 3
0
 def __init__(self, constant):
     # type should be integer in universe scope
     ExpressionNode.__init__(self, integerInstance)
     self.constant = constant
Ejemplo n.º 4
0
 def __init__(self, type, location, expression):
     ExpressionNode.__init__(self,  type)
     self.location = location
     self.expression = expression
Ejemplo n.º 5
0
 def __init__(self, _type, variable, var_name):
     ExpressionNode.__init__(self, _type)
     self.variable = variable
     self.variable_name = var_name