1
0
forked from GitHub/gf-core

in debug mode print some productions that I missed before

This commit is contained in:
Krasimir Angelov
2024-01-10 11:50:52 +01:00
parent ea9cd82428
commit 9fd68cd592

View File

@@ -1524,7 +1524,11 @@ PgfParser::Choice *PgfParser::intersect_choice(Choice *choice1, Choice *choice2,
return NULL;
}
prod->args[i] = arg;
}
}
#ifdef DEBUG_PARSER
print_prod(choice, prod);
#endif
}
}
}
@@ -1599,6 +1603,9 @@ PgfParser::Choice *PgfParser::retrieve_choice(ref<PgfLRReduceArg> arg)
prod->args[j] = retrieve_choice(child);
}
choice->prods.push_back(prod);
#ifdef DEBUG_PARSER
print_prod(choice, prod);
#endif
}
}