aboutsummaryrefslogtreecommitdiff
path: root/neb/structs.py
diff options
context:
space:
mode:
authormryouse2022-06-30 03:40:39 +0000
committermryouse2022-06-30 03:40:39 +0000
commitbf8900200c25d383c883501446a8048ad8966d94 (patch)
treec9c5fbd4563b2edc066339f0933d9b225bb5bdd6 /neb/structs.py
parent5274edb5484f75266304d21840f8e854f2a1d3c5 (diff)
initial commit of multi-type support (only list of strings for now)
Diffstat (limited to 'neb/structs.py')
-rw-r--r--neb/structs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/neb/structs.py b/neb/structs.py
index b8effd0..80252a0 100644
--- a/neb/structs.py
+++ b/neb/structs.py
@@ -97,6 +97,13 @@ class Type:
def __str__(self):
return self.name
+class MultiType:
+ def __init__(self, name, inner):
+ self.name = name
+ self.inner = inner
+ def __str__(self):
+ return self.name
+
class Symbol:
def __init__(self, name, line):
self.name = name