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