From 3dad077a09d1e325bace8dadf314fe75060b8658 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 12 Jul 2019 00:00:03 -0700 Subject: [PATCH] Temporarily break reduced_ast stage --- schala-lang/language/src/schala.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 {