64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
for nAction, sAction in enumerate(sActions.split(" <<- ")):
if sAction.strip():
sActionId = sRuleName + "_a" + str(nAction)
sCondition, tAction = createAction(sActionId, sAction, nGroup, nPriority, dPos)
if tAction:
dACTIONS[sActionId] = tAction
lResult = list(lToken)
lResult.extend([iLine, sRuleName, sCondition, sActionId])
yield lResult
def createAction (sIdAction, sAction, nGroup, nPriority, dPos):
m = re.search("([-~=])(\\d+|)(:\\d+|)>> ", sAction)
if not m:
print(" # Error. No action found at: ", sIdAction)
|
|
|
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
for nAction, sAction in enumerate(sActions.split(" <<- ")):
if sAction.strip():
sActionId = sRuleName + "_a" + str(nAction)
sCondition, tAction = createAction(sActionId, sAction, nGroup, nPriority, dPos)
if tAction:
dACTIONS[sActionId] = tAction
lResult = list(lToken)
lResult.extend(["##"+str(iLine), sRuleName, sCondition, sActionId])
yield lResult
def createAction (sIdAction, sAction, nGroup, nPriority, dPos):
m = re.search("([-~=])(\\d+|)(:\\d+|)>> ", sAction)
if not m:
print(" # Error. No action found at: ", sIdAction)
|