Apply wokr

This commit is contained in:
greg 2017-12-21 01:10:53 -08:00
parent 47cad3712c
commit 8dde8c7381

View File

@ -182,8 +182,17 @@ impl EvaluatorState {
}) })
} }
fn apply(&mut self, _function: Sexp, _operands: Sexp) -> Result<Sexp, String> { fn apply(&mut self, function: Sexp, _operands: Sexp) -> Result<Sexp, String> {
Err(format!("Not implemented")) use self::Sexp::*;
match function {
FnLiteral { formal_params, body } => {
Err(format!("unimplementd"))
},
Builtin(sym) => {
Err(format!("unimplementd"))
},
_ => return Err(format!("Bad type to apply")),
}
} }
} }