Grammalecte  Check-in [3ea4cd88d0]

Overview
Comment:[core][bug] gc engine: wrong variable name
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | rg
Files: files | file ages | folders
SHA3-256: 3ea4cd88d079e4fc429a3945a4c6dbb5f5b0364c7105547e5e4a9bf1ebccbe8e
User & Date: olr on 2018-06-27 16:02:06
Other Links: branch diff | manifest | tags
Context
2018-06-27
16:02
[fr] conversion: regex rules -> graph rules check-in: 7ada852885 user: olr tags: fr, rg
16:02
[core][bug] gc engine: wrong variable name check-in: 3ea4cd88d0 user: olr tags: core, rg
15:10
[fr] conversion: regex rules -> graph rules check-in: ff4d49c27a user: olr tags: fr, rg
Changes

Modified gc_core/py/lang_core/gc_engine.py from [5bb9631cfb] to [8b03067d70].

692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
            for sMeta in dNode["<meta>"]:
                # not regex here, we just search if <dNode["sType"]> exists within <sMeta>
                if sMeta == "*":
                    if bDebug:
                        print("  MATCH: *" + sMeta)
                    yield dGraph[dNode["<meta>"]["*"]]
                elif "¬" in sMeta:
                    if dNode["sType"] not in sMeta:
                        if bDebug:
                            print("  MATCH: *" + sMeta)
                        yield dGraph[dNode["<meta>"][sMeta]]
                elif dNode["sType"] in sMeta:
                    if bDebug:
                        print("  MATCH: *" + sMeta)
                    yield dGraph[dNode["<meta>"][sMeta]]


    def parse (self, dGraph, dPriority, sCountry="${country_default}", dOptions=None, bShowRuleId=False, bDebug=False, bContext=False):
        "parse tokens from the text and execute actions encountered"







|



|







692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
            for sMeta in dNode["<meta>"]:
                # not regex here, we just search if <dNode["sType"]> exists within <sMeta>
                if sMeta == "*":
                    if bDebug:
                        print("  MATCH: *" + sMeta)
                    yield dGraph[dNode["<meta>"]["*"]]
                elif "¬" in sMeta:
                    if dToken["sType"] not in sMeta:
                        if bDebug:
                            print("  MATCH: *" + sMeta)
                        yield dGraph[dNode["<meta>"][sMeta]]
                elif dToken["sType"] in sMeta:
                    if bDebug:
                        print("  MATCH: *" + sMeta)
                    yield dGraph[dNode["<meta>"][sMeta]]


    def parse (self, dGraph, dPriority, sCountry="${country_default}", dOptions=None, bShowRuleId=False, bDebug=False, bContext=False):
        "parse tokens from the text and execute actions encountered"