13 lines
322 B
Python
13 lines
322 B
Python
class LogVariable:
|
|
def __init__(self, uid: int, initial_value: str = "", var_type: str = "VAR"):
|
|
self.uid = uid
|
|
self.initial_value = initial_value
|
|
self.var_type = var_type
|
|
|
|
def __str__(self):
|
|
return f"<{self.var_type}_{self.uid}>"
|
|
|
|
def __repr__(self):
|
|
return str(self)
|
|
|