1 2 3 4 5 6 7 8
from type import DataType class Symbol(object): __slots__ = ['type', 'value'] def __init__(self, value, type = DataType.INT): self.value = value self.type = type