358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
|
358
359
360
361
362
363
364
365
366
367
368
369
370
371
|
-
-
-
|
elif sAction.startswith('"') and sAction.endswith('"'):
sAction = sAction[1:-1]
return [sCondition, cAction, sAction, iGroup]
if cAction == "=":
## disambiguator
if sAction[0:1] == "=":
sAction = sAction[1:]
if "define" in sAction and not re.search(r"define\(dTokenPos, *m\.start.*, \[.*\] *\)", sAction):
print(f"# Error in action at line {sIdAction}: second argument for define must be a list of strings")
print(sAction)
lFUNCTIONS.append(("_d_"+sIdAction, sAction))
sAction = "_d_"+sIdAction
return [sCondition, cAction, sAction]
print(f"# Unknown action at line {sIdAction}")
return None
|