def __init__(self, type, location, variable): ExpressionNode.__init__(self, type) self.location = location self.variable = variable
def __init__(self, operator, left, right): ExpressionNode.__init__(self, integerInstance) self.operator = operator self.exp_left = left self.exp_right = right
def __init__(self, constant): # type should be integer in universe scope ExpressionNode.__init__(self, integerInstance) self.constant = constant
def __init__(self, type, location, expression): ExpressionNode.__init__(self, type) self.location = location self.expression = expression
def __init__(self, _type, variable, var_name): ExpressionNode.__init__(self, _type) self.variable = variable self.variable_name = var_name