Grammalecte  Check-in [a86d8ca64f]

Overview
Comment:[core][bug] gc engine: text processor, fix group selection
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | rg
Files: files | file ages | folders
SHA3-256: a86d8ca64f6dbdfb62461d493248910861857cbcab173bdbd439d9f35d2ef763
User & Date: olr on 2018-08-06 16:27:14
Other Links: branch diff | manifest | tags
Context
2018-08-06
16:27
[fr] conversion: regex rules -> graph rules check-in: c1c1ac5e30 user: olr tags: fr, rg
16:27
[core][bug] gc engine: text processor, fix group selection check-in: a86d8ca64f user: olr tags: core, rg
2018-08-04
20:12
[fr] conversion: regex rules -> graph rules check-in: 0531cae0d4 user: olr tags: fr, rg
Changes

Modified gc_core/py/lang_core/gc_engine.py from [d127e46b95] to [652a920cd2].

795
796
797
798
799
800
801

802
803
804
805
806
807
808
809
810
                                        dPriority[nErrorStart] = nPriority
                                        if bDebug:
                                            print("  NEW_ERROR:", self.dError[nErrorStart], "\n  ", dRule[sRuleId])
                            elif cActionType == "~":
                                # text processor
                                if bDebug:
                                    print("  TAG_PREPARE:\n  ", dRule[sRuleId])

                                nEndToken = (nTokenOffset + eAct[1])  if eAct[1]  else nLastToken
                                self._tagAndPrepareTokenForRewriting(sWhat, nTokenOffset + eAct[0], nEndToken, nTokenOffset, nLastToken, eAct[2], bDebug)
                                bChange = True
                            elif cActionType == "=":
                                # disambiguation
                                if bDebug:
                                    print("  DISAMBIGUATOR:\n  ", dRule[sRuleId])
                                globals()[sWhat](self.lToken, nTokenOffset)
                            elif cActionType == ">":







>
|
|







795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
                                        dPriority[nErrorStart] = nPriority
                                        if bDebug:
                                            print("  NEW_ERROR:", self.dError[nErrorStart], "\n  ", dRule[sRuleId])
                            elif cActionType == "~":
                                # text processor
                                if bDebug:
                                    print("  TAG_PREPARE:\n  ", dRule[sRuleId])
                                nTokenStart = nTokenOffset + eAct[0]  if eAct[0] > 0  else nLastToken + eAct[0]
                                nTokenEnd = nTokenOffset + eAct[1]  if eAct[1] > 0  else nLastToken + eAct[1]
                                self._tagAndPrepareTokenForRewriting(sWhat, nTokenStart, nTokenEnd, nTokenOffset, nLastToken, eAct[2], bDebug)
                                bChange = True
                            elif cActionType == "=":
                                # disambiguation
                                if bDebug:
                                    print("  DISAMBIGUATOR:\n  ", dRule[sRuleId])
                                globals()[sWhat](self.lToken, nTokenOffset)
                            elif cActionType == ">":