aboutsummaryrefslogtreecommitdiff
path: root/neb/structs.py
diff options
context:
space:
mode:
Diffstat (limited to 'neb/structs.py')
-rw-r--r--neb/structs.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/neb/structs.py b/neb/structs.py
index 947f3f6..c8e7e8b 100644
--- a/neb/structs.py
+++ b/neb/structs.py
@@ -99,10 +99,16 @@ class Symbol:
def __str__(self):
return f"{self.name}"
+class Expr:
+ def __init__(self, args):
+ self.args = args
+ self.type_ = TypeEnum.ANY # TODO no it's not
+ def __str__(self):
+ return "(" + " ".join(f"{arg}" for arg in self.args) + ")"
+
class List:
- def __init__(self, args, data=False):
+ def __init__(self, args):
self.args = args
- self.data = data
self.type_ = TypeEnum.LIST
def __str__(self):
return "(" + " ".join(f"{arg}" for arg in self.args) + ")"