aboutsummaryrefslogtreecommitdiff
path: root/tokens.py
diff options
context:
space:
mode:
authormryouse2022-05-13 22:50:15 +0000
committermryouse2022-05-13 22:50:15 +0000
commit47a483d875e9bd0fb0575f9450790eb962e0d799 (patch)
tree29b4b4857ad177bbc4b584dd1858e78447f242cf /tokens.py
parent9ac2c37464ae95d78e9d410fa8ec71543fe46d8e (diff)
return nil (empty list) if there's nothing else to return
Diffstat (limited to 'tokens.py')
-rw-r--r--tokens.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tokens.py b/tokens.py
index 1f1fe1b..6e4ba86 100644
--- a/tokens.py
+++ b/tokens.py
@@ -140,3 +140,10 @@ class NebList(NebAny):
out += f"{item} "
return f"{out}]"
+class NebNil(NebList):
+ def __init__(self):
+ super().__init__([])
+
+ def __str__(self):
+ return "()"
+