From c121f20620499e9b7c497c82c7321474cbf59e1d Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sun, 10 Aug 2025 14:36:02 +0300 Subject: Implemented aka. Changed Nil:st type to NilType from an empty list. --- src/type/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/type/mod.rs') diff --git a/src/type/mod.rs b/src/type/mod.rs index eba817b..9c2f89c 100644 --- a/src/type/mod.rs +++ b/src/type/mod.rs @@ -23,6 +23,8 @@ pub enum Type { List(Vec), + NilType, + VecOf(Box), VecType, // constructor @@ -108,6 +110,7 @@ impl Type { QuoteTy => Ok(()), VecType => Ok(()), LetType => Ok(()), + NilType => Ok(()), Arrow(a, b) => b.is_concrete().and_then(|_ok| a.is_concrete()), List(v) => { let mut res = Ok(()); -- cgit v1.2.3