Grammalecte  Check-in [30e9ffd98a]

Overview
Comment:[core][bug] boolean storing condition result wrongly reset
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | rg
Files: files | file ages | folders
SHA3-256: 30e9ffd98a5e827802a9a7aeb2a152d62c4f97beba4782c590115654304bf540
User & Date: olr on 2018-06-14 12:35:21
Other Links: branch diff | manifest | tags
Context
2018-06-16
09:52
[build] handles groups of actions within rules check-in: 4452713abf user: olr tags: build, rg
2018-06-14
12:35
[core][bug] boolean storing condition result wrongly reset check-in: 30e9ffd98a user: olr tags: core, rg
12:31
[core] better debugging mode check-in: 51affbc3d4 user: olr tags: core, rg
Changes

Modified gc_core/py/lang_core/gc_engine.py from [e9a038bb63] to [c27f614a0d].

   682    682           return (bChange, dErr)
   683    683   
   684    684       def _executeActions (self, dGraph, dNode, nTokenOffset, dPriority, dOptions, sCountry, bShowRuleId, bDebug, bContext):
   685    685           "execute actions found in the DARG"
   686    686           dErrs = {}
   687    687           bChange = False
   688    688           for sLineId, nextNodeKey in dNode.items():
          689  +            bCondMemo = None
   689    690               for sRuleId in dGraph[nextNodeKey]:
   690    691                   try:
   691    692                       if bDebug:
   692    693                           print("ACTION:", sRuleId)
   693    694                           print(dRule[sRuleId])
   694         -                    bCondMemo = None
   695    695                       sOption, sFuncCond, cActionType, sWhat, *eAct = dRule[sRuleId]
   696    696                       # action in lActions: [ condition, action type, replacement/suggestion/action[, iTokenStart, iTokenEnd[, nPriority, message, URL]] ]
   697    697                       if not sOption or dOptions.get(sOption, False):
   698    698                           bCondMemo = not sFuncCond or globals()[sFuncCond](self.lToken, nTokenOffset, sCountry, bCondMemo)
   699    699                           if bCondMemo:
   700    700                               if cActionType == "-":
   701    701                                   # grammar error