Overview
Comment: | [build][core] option for actions |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core | build | rg |
Files: | files | file ages | folders |
SHA3-256: |
c5640a1fc5bd760c0a3d9ac0b4412a4a |
User & Date: | olr on 2018-06-12 09:50:01 |
Other Links: | branch diff | manifest | tags |
Context
2018-06-12
| ||
10:04 | [core][bug] wrong parameter name check-in: 59749c193f user: olr tags: core, rg | |
09:50 | [build][core] option for actions check-in: c5640a1fc5 user: olr tags: core, build, rg | |
09:08 | [misc] SublimeText syntax rules update check-in: 06e51c6eba user: olr tags: misc, rg | |
Changes
Modified compile_rules_graph.py from [f86ee887b1] to [2fdedc6cde].
︙ | |||
79 80 81 82 83 84 85 | 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | + - + + + + + + + + | if sToken.startswith("(") and sToken.endswith(")"): lToken[i] = sToken[1:-1] iGroup += 1 dPos[iGroup] = i + 1 # we add 1, for we count tokens from 1 to n (not from 0) # Parse actions for nAction, sAction in enumerate(sActions.split(" <<- ")): sAction = sAction.strip() |
︙ | |||
181 182 183 184 185 186 187 | 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 | - + - + - + - + | if sAction[0:1] == "=": lFUNCTIONS.append(("g_s_"+sIdAction, sAction[1:])) sAction = "=g_s_"+sIdAction elif sAction.startswith('"') and sAction.endswith('"'): sAction = sAction[1:-1] if not sMsg: print("# Error in action at line " + sIdAction + ": The message is empty.") |
︙ |
Modified gc_core/py/lang_core/gc_engine.py from [0da090b219] to [ab8127fecd].
︙ | |||
654 655 656 657 658 659 660 | 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 | + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | def _executeActions (self, dGraph, dNode, nTokenOffset, dPriority, dOpt, sCountry, bShowRuleId, bDebug, bContext): "execute actions found in the DARG" dErrs = {} bChange = False for sLineId, nextNodeKey in dNode.items(): for sRuleId in dGraph[nextNodeKey]: try: |
︙ |