diff --git a/bison_xml_file_ingest.py b/bison_xml_file_ingest.py index 915ed3d2a8351ede8c8809818db4c93a63e0f723..57d6883efbcb0be406d408e0ce6041a3bc6f586d 100644 --- a/bison_xml_file_ingest.py +++ b/bison_xml_file_ingest.py @@ -474,12 +474,10 @@ for state_number, reduce_rule_number in reduce_rule_locations: assert(fromgraph[0] == state_number) stack_state = fromgraph[1] - print(stack_state) - rule_RHS = rules[reduce_rule_number - 1][1][::-1] - + print("state number is", state_number, "stack_state is", stack_state) + rule_RHS = rules[reduce_rule_number][1][::-1] + print("rule number is", reduce_rule_number, "and its RHS is",rule_RHS) for idx, x in enumerate(rule_RHS): - print("rule number", idx, "with rhs equal to", x) - print("stack_state[",idx,"]=",stack_state[idx]) assert(stack_state[idx] == x)