From 66f71606efe1485c4adb7f1baaca91874557883e Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 14 Jun 2019 00:23:32 -0700 Subject: [PATCH] Add back some debugging for parsing --- schala-lang/language/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schala-lang/language/src/lib.rs b/schala-lang/language/src/lib.rs index 023c1e1..4757eee 100644 --- a/schala-lang/language/src/lib.rs +++ b/schala-lang/language/src/lib.rs @@ -139,7 +139,8 @@ fn parsing(input: Vec, handle: &mut Schala, comp: Option<&mut let ast = parser.parse(); let _trace = parser.format_parse_trace(); - comp.map(|_comp| { + comp.map(|comp| { + comp.add_artifact(format!("{:#?}", ast)); /* //TODO need to control which of these debug stages get added let opt = comp.cur_debug_options.get(0).map(|s| s.clone());