From 72076023dfb3d57ce17e429ef12b768bb49ba612 Mon Sep 17 00:00:00 2001 From: Kia <kia@special-circumstanc.es> Date: Sun, 8 Nov 2020 20:18:41 -0700 Subject: [PATCH] print all the generated tables at the end --- bison_xml_file_ingest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bison_xml_file_ingest.py b/bison_xml_file_ingest.py index 57d6883..e84c740 100644 --- a/bison_xml_file_ingest.py +++ b/bison_xml_file_ingest.py @@ -558,11 +558,12 @@ for statenumber, rule in enumerate(shift_reduce_table): force_shift_ruleset.append(this_state_s_force_shift_items) reduce_ruleset.append(this_state_s_reduce_rule_items) -print("XXXXXXX", len(valid_item_ruleset)) - - for rule in rules: reduce_rule_execute_ruleset.append((rule[0], len(rule[1]))) +#print("XXXXXXX", len(valid_item_ruleset)) +print(valid_item_ruleset) +print(force_shift_ruleset) +print(reduce_ruleset) print(reduce_rule_execute_ruleset) -- GitLab