70
|
1
|
|
2 class Value:
|
110
|
3 def __init__(self, vty=None):
|
|
4 self.valueType = vty
|
70
|
5 self.name = None
|
|
6 def getContext(self):
|
|
7 return self.valueType.context
|
104
|
8 def dump(self):
|
|
9 print(self)
|
70
|
10
|
110
|
11 def getName(self):
|
|
12 return self.name
|
70
|
13 def setName(self, name):
|
|
14 if not self.name and not name:
|
|
15 return
|
|
16 self.name = name
|
|
17
|
|
18 if self.st:
|
|
19 pass
|
|
20 else:
|
|
21 pass
|
110
|
22 Name = property(getName, setName)
|
70
|
23
|
110
|
24 class Constant(Value):
|
|
25 def __init__(self, value, vty):
|
|
26 super().__init__(vty)
|
|
27 self.value = value
|
|
28 print('new constant value: ', value)
|
|
29
|