summaryrefslogtreecommitdiff
path: root/chain/src/item/genins.rs
diff options
context:
space:
mode:
Diffstat (limited to 'chain/src/item/genins.rs')
-rw-r--r--chain/src/item/genins.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/chain/src/item/genins.rs b/chain/src/item/genins.rs
index 262728f..e3e79b6 100644
--- a/chain/src/item/genins.rs
+++ b/chain/src/item/genins.rs
@@ -212,7 +212,7 @@ impl DefaultForest<ForestLabel<GrammarLabel>> {
// Whether or not to print detailed graphs of each step of
// operation for debugging purposes.
let mut to_print = false;
- // let mut to_print = (8..=10).contains(&pos);
+ // let mut to_print = (11..=12).contains(&pos);
if std::fs::metadata("output/").is_err() {
to_print = false;
@@ -419,8 +419,8 @@ impl DefaultForest<ForestLabel<GrammarLabel>> {
.collect();
}
- // if pos == 9 {
- // dbg!(&parents);
+ // if pos == 12 {
+ // dbg!(num, &parents, pavi, label);
// }
let mut non_empty = false;
@@ -535,7 +535,6 @@ impl DefaultForest<ForestLabel<GrammarLabel>> {
parents,
reduction_info,
atom.query_reduction(label.label(), atom_child).unwrap(),
- is_empty_segment,
atom.trace(0, 3, atom_child)
.into_iter()
.flatten()
@@ -616,6 +615,10 @@ impl DefaultForest<ForestLabel<GrammarLabel>> {
unreachable!("the forest is wrongly planted");
}
+ // if pos == 11 {
+ // dbg!(root_label, node, edge, child);
+ // }
+
// dbg!(node, edge, root_label, leaf_label);
PaVi::Parent(node, edge, child)
} else {