diff --git a/src/rukka_lang/mod.rs b/src/rukka_lang/mod.rs index 9d15006..a925295 100644 --- a/src/rukka_lang/mod.rs +++ b/src/rukka_lang/mod.rs @@ -182,8 +182,17 @@ impl EvaluatorState { }) } - fn apply(&mut self, _function: Sexp, _operands: Sexp) -> Result { - Err(format!("Not implemented")) + fn apply(&mut self, function: Sexp, _operands: Sexp) -> Result { + use self::Sexp::*; + match function { + FnLiteral { formal_params, body } => { + Err(format!("unimplementd")) + }, + Builtin(sym) => { + Err(format!("unimplementd")) + }, + _ => return Err(format!("Bad type to apply")), + } } }