finish up builtin implementations for Vasil

This commit is contained in:
Kasey White
2022-08-29 23:46:24 -04:00
committed by Lucas
parent 2d1f147d40
commit c88e5df8b1
5 changed files with 83 additions and 21 deletions

View File

@@ -24,6 +24,8 @@ pub enum Error {
TypeMismatch(Type, Type),
#[error("Type mismatch expected '(list a)' got '{0}'")]
ListTypeMismatch(Type),
#[error("Type mismatch expected '(pair a b)' got '{0}'")]
PairTypeMismatch(Type),
#[error("Empty List:\n\n{0:#?}")]
EmptyList(Value),
#[error("A builtin received a term argument when something else was expected:\n\n{0}\n\nYou probably forgot to wrap the builtin with a force.")]