Grammalecte  Check-in [5339cc16ed]

Overview
Comment:[core] gc engine: use == to check token type
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | rg
Files: files | file ages | folders
SHA3-256: 5339cc16ed5515540647c73bf4c79b7b5b2d0ae4da1e2c60949ad60898522d88
User & Date: olr on 2018-08-04 14:11:25
Other Links: branch diff | manifest | tags
Context
2018-08-04
20:12
[fr] conversion: regex rules -> graph rules check-in: 0531cae0d4 user: olr tags: fr, rg
14:11
[core] gc engine: use == to check token type check-in: 5339cc16ed user: olr tags: core, rg
13:57
[fr] immunité pour n’importe qui/quoi check-in: 7e04325c2e user: olr tags: fr, rg
Changes

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

717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
                    bTokenFound = True
                elif "¬" in sMeta:
                    if dToken["sType"] not in sMeta:
                        if bDebug:
                            print("  MATCH: *" + sMeta)
                        yield { "iNode1": iNode1, "dNode": dGraph[dNode["<meta>"][sMeta]] }
                        bTokenFound = True
                elif dToken["sType"] in sMeta:
                    if bDebug:
                        print("  MATCH: *" + sMeta)
                    yield { "iNode1": iNode1, "dNode": dGraph[dNode["<meta>"][sMeta]] }
                    bTokenFound = True
        if "bKeep" in dPointer and not bTokenFound:
            yield dPointer
        # JUMP







|







717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
                    bTokenFound = True
                elif "¬" in sMeta:
                    if dToken["sType"] not in sMeta:
                        if bDebug:
                            print("  MATCH: *" + sMeta)
                        yield { "iNode1": iNode1, "dNode": dGraph[dNode["<meta>"][sMeta]] }
                        bTokenFound = True
                elif dToken["sType"] == sMeta:
                    if bDebug:
                        print("  MATCH: *" + sMeta)
                    yield { "iNode1": iNode1, "dNode": dGraph[dNode["<meta>"][sMeta]] }
                    bTokenFound = True
        if "bKeep" in dPointer and not bTokenFound:
            yield dPointer
        # JUMP