summaryrefslogtreecommitdiff
path: root/master_thesis/elio_procedures.py
diff options
context:
space:
mode:
authorNiclas Dobbertin <niclas.dobbertin@mailbox.org>2023-07-07 09:58:47 +0200
committerNiclas Dobbertin <niclas.dobbertin@mailbox.org>2023-07-07 09:58:47 +0200
commitd62db260942bde9d22a5ecaf85ecc040742d74b6 (patch)
tree965ab07ee709a5d51edecb4919d89a20750a4990 /master_thesis/elio_procedures.py
test code
Diffstat (limited to 'master_thesis/elio_procedures.py')
-rw-r--r--master_thesis/elio_procedures.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/master_thesis/elio_procedures.py b/master_thesis/elio_procedures.py
new file mode 100644
index 0000000..cd4848e
--- /dev/null
+++ b/master_thesis/elio_procedures.py
@@ -0,0 +1,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)