Grammalecte  Check-in [e9e1583710]

Overview
Comment:[build] graph rules reader: prepare function for text processor
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: e9e1583710c1261acb60581d46670ed98d035755a483520efb876684291762f0
User & Date: olr on 2018-06-26 20:19:48
Other Links: branch diff | manifest | tags
Context
2018-06-27
07:14
[core] morph and analyse: parameters to check slice instead of the full value check-in: 366a0b9969 user: olr tags: core, rg
2018-06-26
20:19
[build] graph rules reader: prepare function for text processor check-in: e9e1583710 user: olr tags: build, rg
17:04
[fr] conversion: regex rules -> graph rules check-in: b548f4e712 user: olr tags: fr, rg
Changes

Modified compile_rules_graph.py from [ad40703abe] to [19fb543170].

236
237
238
239
240
241
242

243
244
245
246
247
248
249
            sAction = sAction[1:-1]
        if not sMsg:
            print("# Error in action at line " + sActionId + ":  The message is empty.")
        return [sOption, sCondition, cAction, sAction, iStartAction, iEndAction, nPriority, sMsg, sURL]
    elif cAction == "~":
        ## text processor
        if sAction[0:1] == "=":

            dFUNCTIONS["_g_p_"+sActionId] = sAction[1:]
            sAction = "=_g_p_"+sActionId
        elif sAction.startswith('"') and sAction.endswith('"'):
            sAction = sAction[1:-1]
        return [sOption, sCondition, cAction, sAction, iStartAction, iEndAction]
    elif cAction == "/":
        ## tags







>







236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
            sAction = sAction[1:-1]
        if not sMsg:
            print("# Error in action at line " + sActionId + ":  The message is empty.")
        return [sOption, sCondition, cAction, sAction, iStartAction, iEndAction, nPriority, sMsg, sURL]
    elif cAction == "~":
        ## text processor
        if sAction[0:1] == "=":
            sAction = prepareFunction(sAction, True)
            dFUNCTIONS["_g_p_"+sActionId] = sAction[1:]
            sAction = "=_g_p_"+sActionId
        elif sAction.startswith('"') and sAction.endswith('"'):
            sAction = sAction[1:-1]
        return [sOption, sCondition, cAction, sAction, iStartAction, iEndAction]
    elif cAction == "/":
        ## tags