Grammalecte  Check-in [2ae38c10dc]

Overview
Comment:[build][js] fix graph rules builder
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: 2ae38c10dcc46c6fbdfff7fab682f64c0d45bd5e2bf42b02321d609dbc143dc5
User & Date: olr on 2018-09-10 11:00:58
Other Links: branch diff | manifest | tags
Context
2018-09-10
13:00
[core][js] gc engine: fix syntax errors check-in: 516c08196b user: olr tags: core, rg
11:00
[build][js] fix graph rules builder check-in: 2ae38c10dc user: olr tags: build, rg
09:15
[build][js] build graph rules for JS check-in: 7f7a39e30f user: olr tags: build, rg
Changes

Modified compile_rules_js_convert.py from [9aa0239064] to [6f9b1d0f6a].

152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
                sArray += json.dumps(lActions, ensure_ascii=False) + ", "
                sArray += json.dumps(aGroups, ensure_ascii=False) + ", "
                sArray += json.dumps(aNegLookBehindRegex, ensure_ascii=False) + "],\n"
            sArray += "  ]],\n"
        else:
            sArray += '  ["' + sOption + '", [\n'
            for sGraphName, sLineId in aRuleGroup:
                sArray += '    ["' + sGraphName + '", "' + sLineId + '"],\n"'
            sArray += "  ]],\n"
    sArray += "]"
    return sArray


def groupsPositioningCodeToList (sGroupsPositioningCode):
    "convert <sGroupsPositioningCode> to a list of codes (numbers or strings)"







|







152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
                sArray += json.dumps(lActions, ensure_ascii=False) + ", "
                sArray += json.dumps(aGroups, ensure_ascii=False) + ", "
                sArray += json.dumps(aNegLookBehindRegex, ensure_ascii=False) + "],\n"
            sArray += "  ]],\n"
        else:
            sArray += '  ["' + sOption + '", [\n'
            for sGraphName, sLineId in aRuleGroup:
                sArray += '    ["' + sGraphName + '", "' + sLineId + '"],\n'
            sArray += "  ]],\n"
    sArray += "]"
    return sArray


def groupsPositioningCodeToList (sGroupsPositioningCode):
    "convert <sGroupsPositioningCode> to a list of codes (numbers or strings)"