Grammalecte  Check-in [e4d45d6e72]

Overview
Comment:[build] graph builder: update check usage of define
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: e4d45d6e7205e912a93992c80bf982a8774edd4b3d3331cc1bf55dec2d0a1521
User & Date: olr on 2018-08-29 08:58:15
Other Links: branch diff | manifest | tags
Context
2018-08-29
08:58
[fr] ajustements check-in: dea392c307 user: olr tags: fr, rg
08:58
[build] graph builder: update check usage of define check-in: e4d45d6e72 user: olr tags: build, rg
2018-08-28
11:17
[fr] ajustements check-in: 772f268c3c user: olr tags: fr, rg
Changes

Modified compile_rules_graph.py from [70fe4f2ca1] to [78ea46d853].

304
305
306
307
308
309
310
311

312
313
314
315
316
317
318
304
305
306
307
308
309
310

311
312
313
314
315
316
317
318







-
+







            sAction = sAction[1:-1]
        return [sOption, sCondition, cAction, sAction, iStartAction, iEndAction, bCaseSensitivity]
    elif cAction == "%" or cAction == "/":
        ## tags
        return [sOption, sCondition, cAction, sAction, iStartAction, iEndAction]
    elif cAction == "=":
        ## disambiguator
        if "define(" in sAction and not re.search(r"define\(\\\d+ *, *\[.*\] *\)", sAction):
        if "define(" in sAction and not re.search(r"define\(\\-?\d+ *, *\[.*\] *\)", sAction):
            print("# Error in action at line " + sActionId + ": second argument for <define> must be a list of strings")
        sAction = createFunction("da", sActionId, sAction)
        return [sOption, sCondition, cAction, sAction]
    else:
        print(" # Unknown action.", sActionId)
        return None