summaryrefslogtreecommitdiff
path: root/master_thesis/elio_procedures.py
blob: cd4848e5c0fc3b83b04286dff65089014118662e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python3


class Procedure:
    pass


class Variable:
    def __init__(self, name: str, subscript: int = 0):
        self.name = name
        self.subscript = subscript


    def __str__(self):
        return f"{self.name}_{self.subscript}"

    def get_result(self, Variables: dict):
        if not self.subscript:
            return Variables[self.name]
        else:
            return Variables

x = Variable("solid", 2)
print(x)