Apply wokr
This commit is contained in:
parent
0e25720927
commit
aa821e720a
@ -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")),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user