Kill comments

This commit is contained in:
greg 2018-03-02 23:27:17 -08:00
parent 9747374e8a
commit a0bea0d55a

View File

@ -9,7 +9,6 @@ mod builtin;
mod tokenizing; mod tokenizing;
mod parsing; mod parsing;
//mod type_check;
mod typechecking; mod typechecking;
mod eval; mod eval;
@ -95,26 +94,6 @@ impl ProgrammingLanguageInterface for Schala {
} }
} }
/*
self.type_context.add_symbols(&ast);
if options.debug_symbol_table {
let text = self.type_context.debug_symbol_table();
output.add_artifact(TraceArtifact::new("symbol_table", text));
}
match self.type_context.type_check(&ast) {
Ok(ty) => {
output.add_artifact(TraceArtifact::new("type_check", format!("type: {:?}", ty)));
},
Err(msg) => {
output.add_artifact(TraceArtifact::new("type_check", msg));
output.add_output(format!("Type error"));
return output;
}
}
*/
let evaluation_outputs = self.state.evaluate(ast); let evaluation_outputs = self.state.evaluate(ast);
let text_output: String = evaluation_outputs.into_iter().intersperse(format!("\n")).collect(); let text_output: String = evaluation_outputs.into_iter().intersperse(format!("\n")).collect();
output.add_output(text_output); output.add_output(text_output);