Overview
| Comment: | [build] code simplification | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | trunk | build | 
| Files: | files | file ages | folders | 
| SHA3-256: | 9094ac60823b5ed03c011827de60fc22 | 
| User & Date: | olr on 2020-04-22 16:56:58 | 
| Other Links: | manifest | tags | 
Context
| 2020-04-23 | ||
| 08:36 | [fr] ajustements check-in: 5ab43f5063 user: olr tags: trunk, fr | |
| 2020-04-22 | ||
| 16:56 | [build] code simplification check-in: 9094ac6082 user: olr tags: trunk, build | |
| 14:59 | [build] make data more readable check-in: e17a78cf83 user: olr tags: trunk, build | |
Changes
Modified compile_rules.py from [c6e75ae902] to [d8be0874f6].
| ︙ | |||
| 146 147 148 149 150 151 152 | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | - + - + | 
    if s.startswith("@@@@"):
        if bParagraph:
            print("Error. Graph call can be made only after the first pass (sentence by sentence)")
            exit()
        return ["@@@@", s[4:], sLineId]
    #### OPTIONS
 | 
| ︙ | |||
| 408 409 410 411 412 413 414 | 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 | - - + | 
    return lFinal
def createRulesAsString (lRules):
    "create rules as a string of arrays (to be bundled in a JSON string)"
    sArray = "[\n"
    for sOption, aRuleGroup in lRules:
 | 
| ︙ | 
Modified compile_rules_js_convert.py from [37ece1a88a] to [b4c7f14ca9].
| ︙ | |||
| 132 133 134 135 136 137 138 139 | 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | + - - - - - - - + + + | 
    return lRuleJS
def writeRulesToJSArray (lRules):
    "create rules as a string of arrays (to be bundled in a JSON string)"
    sArray = "[\n"
    for sOption, aRuleGroup in lRules:
        sArray += f'  ["{sOption}", [\n'
        if sOption != "@@@@":
 | 
| ︙ |