Grammalecte  Check-in [fa229d6ee5]

Overview
Comment:[build] debug: remove rules printing
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: fa229d6ee5074d76b4bfee120b3830f837bc739f3c79adf1f86128573a699de6
User & Date: olr on 2018-06-19 16:47:32
Other Links: branch diff | manifest | tags
Context
2018-06-19
16:55
[build] debug: remove rules printing check-in: c46f8d907b user: olr tags: build, rg
16:47
[build] debug: remove rules printing check-in: fa229d6ee5 user: olr tags: build, rg
16:40
[fr] conversion: regex rules -> graph rules check-in: d719e4570f user: olr tags: fr, rg
Changes

Modified compile_rules_graph.py from [b99924e43b] to [33628f88ed].

315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
    print("  preparing rules...")
    for sGraphName, lRuleLine in dAllGraph.items():
        lPreparedRule = []
        for i, sRuleGroup, sTokenLine, iActionBlock, sActions, nPriority in lRuleLine:
            for lRule in createRule(i, sRuleGroup, sTokenLine, iActionBlock, sActions, nPriority, dDef):
                lPreparedRule.append(lRule)
        # Show rules
        for e in lPreparedRule:
            print(e)
        # Graph creation
        oDARG = darg.DARG(lPreparedRule, sLang)
        dAllGraph[sGraphName] = oDARG.createGraph()

    # creating file with all functions callable by rules
    print("  creating callables...")
    sPyCallables = "# generated code, do not edit\n"







|
|







315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
    print("  preparing rules...")
    for sGraphName, lRuleLine in dAllGraph.items():
        lPreparedRule = []
        for i, sRuleGroup, sTokenLine, iActionBlock, sActions, nPriority in lRuleLine:
            for lRule in createRule(i, sRuleGroup, sTokenLine, iActionBlock, sActions, nPriority, dDef):
                lPreparedRule.append(lRule)
        # Show rules
        #for e in lPreparedRule:
        #    print(e)
        # Graph creation
        oDARG = darg.DARG(lPreparedRule, sLang)
        dAllGraph[sGraphName] = oDARG.createGraph()

    # creating file with all functions callable by rules
    print("  creating callables...")
    sPyCallables = "# generated code, do not edit\n"