aboutsummaryrefslogtreecommitdiff
path: root/neb/structs.py
diff options
context:
space:
mode:
authormryouse2022-07-29 19:56:22 +0000
committermryouse2022-07-29 19:56:22 +0000
commit9fd33f4864310c017a1013f8d18635c1e784f0ab (patch)
tree8cc89071be5e6214e1039df87783000c10540123 /neb/structs.py
parent8c7ff22c9cce5478eb20046b7f5f649f529cdf95 (diff)
have builtins return :nil when appropriate
Diffstat (limited to 'neb/structs.py')
-rw-r--r--neb/structs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/neb/structs.py b/neb/structs.py
index 2423a69..db71aa0 100644
--- a/neb/structs.py
+++ b/neb/structs.py
@@ -169,6 +169,11 @@ class List:
def __str__(self):
return "(" + " ".join(f"{arg}" for arg in self.args) + ")"
+class Nil(List):
+ def __init__(self):
+ self.args = []
+ self.type_ = ALL_TYPES[":nil"]
+
# function things
class Arg: