diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-04-25 15:15:36 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-04-25 15:15:36 -0400 |
commit | a02d6e2127b20c088c944825c0f979668cda55f2 (patch) | |
tree | f82c0a00072a5a224d644754c1c9a8c72457c3eb /rust | |
parent | d08a817571038431f937e180bbdf0f08398f2162 (diff) | |
download | spectrum-a02d6e2127b20c088c944825c0f979668cda55f2.tar.gz spectrum-a02d6e2127b20c088c944825c0f979668cda55f2.zip |
rust: actually pull identifiers from env
Diffstat (limited to 'rust')
-rw-r--r-- | rust/spectrum.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/rust/spectrum.rs b/rust/spectrum.rs index 5e1ed83..2c73281 100644 --- a/rust/spectrum.rs +++ b/rust/spectrum.rs @@ -488,12 +488,8 @@ fn scheme_meaning<'a, 'b>(ast: &SchemeExpr, None => { match env.get(sym) { // fall through to env... - //Some(val) => Ok(val.clone()), - Some(val) => { - println!("{}", scheme_repr(val).unwrap()); - Ok(SchemeExpr::SchemeNull) - }, - None => Err(format!("symbol not defined: {}", sym)), + Some(val) => Ok(val.clone()), + None => Err(format!("identifier not defined: {}", sym)), } } } |