Add back some debugging for parsing

This commit is contained in:
greg 2019-06-14 00:23:32 -07:00
parent 53ce31ea8c
commit 66f71606ef
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@ fn parsing(input: Vec<tokenizing::Token>, 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());