Index: compile_rules_graph.py ================================================================== --- compile_rules_graph.py +++ compile_rules_graph.py @@ -431,16 +431,18 @@ print("Unknown line:") print(sLine) # processing rules print(" preparing rules...") + nRule = 0 for sGraphName, lRuleLine in dAllGraph.items(): print("{:>8,} rules in {:<24} ".format(len(lRuleLine), "<"+sGraphName+">"), end="") lPreparedRule = [] for i, sRuleGroup, sTokenLine, iActionBlock, sActions, nPriority in lRuleLine: for aRule in createRule(i, sRuleGroup, sTokenLine, iActionBlock, sActions, nPriority, dOptPriority, dDef, dDecl): lPreparedRule.append(aRule) + nRule += len(lRuleLine) # Graph creation oDARG = darg.DARG(lPreparedRule, sLang) dAllGraph[sGraphName] = oDARG.createGraph() # Debugging if False: @@ -450,10 +452,11 @@ print(e) if False: print("\nGRAPH:", sGraphName) for k, v in dAllGraph[sGraphName].items(): print(k, "\t", v) + print(" Total: ", nRule, "rules") # creating file with all functions callable by rules print(" creating callables for graph rules...") sPyCallables = "" sJSCallables = ""