Get rid of some printlns

This commit is contained in:
greg 2017-12-29 04:46:19 -08:00
parent 0d2a0e3536
commit ea24ae1bb5

View File

@ -33,7 +33,6 @@ impl EvaluatorState {
binding.insert(var, value); binding.insert(var, value);
} }
fn get_var(&self, var: &str) -> Option<&Sexp> { fn get_var(&self, var: &str) -> Option<&Sexp> {
println!("Var: {}", var);
for bindings in self.binding_stack.iter().rev() { for bindings in self.binding_stack.iter().rev() {
match bindings.get(var) { match bindings.get(var) {
Some(x) => return Some(x), Some(x) => return Some(x),
@ -92,7 +91,6 @@ impl ProgrammingLanguageInterface for Rukka {
impl EvaluatorState { impl EvaluatorState {
fn eval(&mut self, expr: Sexp) -> Result<Sexp, String> { fn eval(&mut self, expr: Sexp) -> Result<Sexp, String> {
use self::Sexp::*; use self::Sexp::*;
println!("Evaling {:?}", expr);
Ok(match expr { Ok(match expr {
SymbolAtom(ref sym) => { SymbolAtom(ref sym) => {
if let Some(op) = get_builtin(sym) { if let Some(op) = get_builtin(sym) {
@ -226,7 +224,6 @@ impl EvaluatorState {
_ => return Err(format!("Bad argument for function application")), _ => return Err(format!("Bad argument for function application")),
} }
} }
println!("Body: {:?}", body);
let result = self.eval(*body); let result = self.eval(*body);
self.pop_env(); self.pop_env();
result result