From 8c7ff22c9cce5478eb20046b7f5f649f529cdf95 Mon Sep 17 00:00:00 2001 From: mryouse Date: Fri, 29 Jul 2022 19:35:26 +0000 Subject: implement a :nil type, which is the empty list --- neb/structs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'neb/structs.py') diff --git a/neb/structs.py b/neb/structs.py index 8c643b5..2423a69 100644 --- a/neb/structs.py +++ b/neb/structs.py @@ -121,7 +121,7 @@ class Type: else: return self.name -_native_types = ":any :literal :string :bool :number :int :float :[] :{} :handle :type" +_native_types = ":any :literal :string :bool :number :int :float :[] :nil :{} :handle :type" ALL_TYPES = {x: Type(x) for x in _native_types.split(" ")} class Symbol: -- cgit v1.2.3