Index: compile_rules_graph.py ================================================================== --- compile_rules_graph.py +++ compile_rules_graph.py @@ -111,11 +111,11 @@ lToken[i] = sToken[1:-1] iGroup += 1 dPos[iGroup] = i + 1 # we add 1, for we count tokens from 1 to n (not from 0) # Parse actions - for iAction, sAction in enumerate(sActions.split(" <<- "), 1): + for iAction, sAction in enumerate(sActions.split(" <<- ")): sAction = sAction.strip() if sAction: sActionId = sRuleName + "__b" + str(iActionBlock) + "_a" + str(iAction) + "_" + str(len(lToken)) aAction = createAction(sActionId, sAction, nPriority, len(lToken), dPos) if aAction: @@ -342,10 +342,12 @@ oDARG = darg.DARG(lPreparedRule, sLang) dAllGraph[sGraphName] = oDARG.createGraph() # Debugging #print("\nGRAPH:", sGraphName) #for e in lPreparedRule: + # if e[-2] == "##4239": + # print(e) # print(e) #for k, v in dAllGraph[sGraphName].items(): # print(k, "\t", v) # creating file with all functions callable by rules