Kill comments
This commit is contained in:
parent
8d79074ea9
commit
a92a2e4454
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user