From 7819472048b043049fc2989ec6bc37f29575d8ce Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Thu, 7 Nov 2024 19:04:58 -0500 Subject: [PATCH] remove catchall pattern in eval --- src/vm.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/vm.rs b/src/vm.rs index 6027412..e690d27 100644 --- a/src/vm.rs +++ b/src/vm.rs @@ -159,6 +159,23 @@ pub fn eval<'src, 'a>( None => Err(LudusError { msg: "No match" }), } } - _ => todo!(), + Ast::Error => todo!(), + Ast::Dict(_) => todo!(), + Ast::Arguments(_) => todo!(), + Ast::Pair(_, _) => todo!(), + Ast::Box(_, _) => todo!(), + Ast::Synthetic(_, _, _) => todo!(), + Ast::When(_) => todo!(), + Ast::WhenClause(_, _) => todo!(), + Ast::Match(_, _) => todo!(), + Ast::MatchClause(_, _) => todo!(), + Ast::Fn(_, _) => todo!(), + Ast::FnDeclaration(_) => todo!(), + Ast::FnClause(_, _) => todo!(), + Ast::Panic(_) => todo!(), + Ast::Repeat(_, _) => todo!(), + Ast::Do(_) => todo!(), + Ast::Loop(_, _) => todo!(), + Ast::Recur(_) => todo!(), } }