diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-10 22:33:48 +0300 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-10 22:33:48 +0300 |
commit | 2f101372e3311f1ccf7f8ec093c7fde9f4373439 (patch) | |
tree | 209cac3d19bc9ee714eedd17766bdc939a1feefa /src/type/mod.rs | |
parent | d6d1ec80ffcc0b13234b170a91b920371078a027 (diff) | |
download | myslip-2f101372e3311f1ccf7f8ec093c7fde9f4373439.tar.gz myslip-2f101372e3311f1ccf7f8ec093c7fde9f4373439.zip |
Implemented functions
Diffstat (limited to 'src/type/mod.rs')
-rw-r--r-- | src/type/mod.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/type/mod.rs b/src/type/mod.rs index d020ab3..f08dc1a 100644 --- a/src/type/mod.rs +++ b/src/type/mod.rs @@ -68,9 +68,23 @@ pub enum TypeError { FunAsAtom, + InvalidFunDef(SExp, FunDefError), + OtherError } +#[derive(Debug,PartialEq)] +pub enum FunDefError { + NoFunToken, + NoArgumentList, + NoTypeList, + NoReturnType, + NoFunctionBody, + InvalidArgumentList, + InvalidTypeList, + InvalidReturnType, +} + use Type::*; impl Type { |