Implement quote support resolves #9
This commit is contained in:
@@ -135,8 +135,8 @@ pub fn interpret(exp: &Datum, env: &mut Env) -> Datum {
|
||||
List(v) if has_tag(v, "cond") => panic!("cond-not-supported"),
|
||||
List(v) if has_tag(v, "let") => panic!("let-not-supported"),
|
||||
List(v) if has_tag(v, "begin") => interpret_begin(v, env),
|
||||
List(v) if has_tag(v, "quote") => v[1].clone(),
|
||||
List(v) => interpret_application(v, env),
|
||||
// TODO: quoted
|
||||
_ => panic!("unknown-expression {:?}", exp),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user