diff --git a/schala-lang/language/src/schala.rs b/schala-lang/language/src/schala.rs index fd733c7..70f95d5 100644 --- a/schala-lang/language/src/schala.rs +++ b/schala-lang/language/src/schala.rs @@ -159,9 +159,10 @@ fn typechecking(input: ast::AST, handle: &mut Schala, comp: Option<&mut PassDebu fn ast_reducing(input: ast::AST, handle: &mut Schala, comp: Option<&mut PassDebugArtifact>) -> Result { let ref symbol_table = handle.symbol_table.borrow(); - let output = input.reduce(symbol_table); + //let output = input.reduce(symbol_table); + let output = reduced_ast::perform_reduction(input, symbol_table); comp.map(|comp| comp.add_artifact(format!("{:?}", output))); - Ok(output) + output } fn eval(input: reduced_ast::ReducedAST, handle: &mut Schala, comp: Option<&mut PassDebugArtifact>) -> Result {