Grammalecte  Check-in [e43f77fe66]

Overview
Comment:[build][bug] graph builder: don’t remove rulename
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: e43f77fe6629e4205202bbab14f1ac3da7e73d436b3f949ad63ce70e299fd1e2
User & Date: olr on 2018-06-13 20:44:18
Other Links: branch diff | manifest | tags
Context
2018-06-13
21:03
[build][bug] graph builder: don’t reset priority check-in: 239c6642dc user: olr tags: build, rg
20:44
[build][bug] graph builder: don’t remove rulename check-in: e43f77fe66 user: olr tags: build, rg
17:10
[fr] conversion regex rules -> graph rules check-in: edf852434a user: olr tags: fr, rg
Changes

Modified compile_rules_graph.py from [e76a1b508a] to [e8cbe17853].

274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
            if not sGraphName:
                print("Error. All rules must belong to a named graph. Line: ", i)
                exit()
            for j, sTokenLine in lTokenLine:
                dAllGraph[sGraphName].append((j, sRuleName, sTokenLine, sActions, nPriority))
            lTokenLine.clear()
            sActions = ""
            sRuleName = ""
            nPriority = 4
        elif re.search("    +<<- ", sLine):
            # actions
            sActions += " " + sLine.strip()
        elif sLine.startswith(("    ")):
            lTokenLine.append([i, sLine.strip()])
        else:







<







274
275
276
277
278
279
280

281
282
283
284
285
286
287
            if not sGraphName:
                print("Error. All rules must belong to a named graph. Line: ", i)
                exit()
            for j, sTokenLine in lTokenLine:
                dAllGraph[sGraphName].append((j, sRuleName, sTokenLine, sActions, nPriority))
            lTokenLine.clear()
            sActions = ""

            nPriority = 4
        elif re.search("    +<<- ", sLine):
            # actions
            sActions += " " + sLine.strip()
        elif sLine.startswith(("    ")):
            lTokenLine.append([i, sLine.strip()])
        else: