diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-04-25 15:15:56 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-04-25 15:15:56 -0400 |
commit | 39aaba04246dae4ce5f6a2a2489294261582adf7 (patch) | |
tree | 778b6d323fae47ee8a06479774a6714be6bfcca1 | |
parent | a02d6e2127b20c088c944825c0f979668cda55f2 (diff) | |
download | spectrum-39aaba04246dae4ce5f6a2a2489294261582adf7.tar.gz spectrum-39aaba04246dae4ce5f6a2a2489294261582adf7.zip |
rust: make identifiers applicable
-rw-r--r-- | rust/spectrum.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rust/spectrum.rs b/rust/spectrum.rs index 2c73281..be0d6d7 100644 --- a/rust/spectrum.rs +++ b/rust/spectrum.rs @@ -511,7 +511,12 @@ fn scheme_meaning<'a, 'b>(ast: &SchemeExpr, apply_action(&list, ctx, env), SchemeExpr::SchemeList(_) => apply_action(&list, ctx, env), - _ => Ok(SchemeExpr::SchemeNull) + SchemeExpr::SchemeIdentifier(_) => + apply_action(&list, ctx, env), + _ => { + Err(format!("unexpected head of expression: {}", + scheme_repr(&list[0]).unwrap())) + } } }, } |