Overview
Comment: | [build][core] backreferences for suggestions and messages |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core | build | rg |
Files: | files | file ages | folders |
SHA3-256: |
5e5ee6df409fe87fbf3fa76f1a9f22b0 |
User & Date: | olr on 2018-06-08 17:56:31 |
Other Links: | branch diff | manifest | tags |
Context
2018-06-09
| ||
09:46 | [core] debug mode check-in: cb932c349b user: olr tags: core, rg | |
2018-06-08
| ||
17:56 | [build][core] backreferences for suggestions and messages check-in: 5e5ee6df40 user: olr tags: core, build, rg | |
15:32 | [build][core] disambigation check-in: 9e87c7d854 user: olr tags: core, build, rg | |
Changes
Modified compile_rules_graph.py from [36585ad2c3] to [37d848c323].
︙ | |||
318 319 320 321 322 323 324 | 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 | - + - + | print(" creating callables...") sPyCallables = "# generated code, do not edit\n" #sJSCallables = "// generated code, do not edit\nconst oEvalFunc = {\n" for sFuncName, sReturn in lFUNCTIONS: if sFuncName.startswith("g_c_"): # condition sParams = "lToken, nTokenOffset, sCountry, bCondMemo" elif sFuncName.startswith("g_m_"): # message |
︙ |
Modified gc_core/py/lang_core/gc_engine.py from [16e9c944d3] to [28162284b3].
︙ | |||
621 622 623 624 625 626 627 | 621 622 623 624 625 626 627 628 629 630 631 632 633 634 | - | yield dGraph[dNode["<re_morph>"][sRegex]] else: if sNegPattern and any(re.search(sNegPattern, sMorph) for sMorph in _oSpellChecker.getMorph(dToken["sValue"])): continue if any(re.search(sPattern, sMorph) for sMorph in _oSpellChecker.getMorph(dToken["sValue"])): yield dGraph[dNode["<re_morph>"][sRegex]] |
︙ | |||
670 671 672 673 674 675 676 | 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 | - + | # grammar error print("-") nTokenErrorStart = nTokenOffset + eAct[0] nTokenErrorEnd = nTokenOffset + eAct[1] nErrorStart = self.nOffset + self.lToken[nTokenErrorStart]["nStart"] nErrorEnd = self.nOffset + self.lToken[nTokenErrorEnd]["nEnd"] if nErrorStart not in dErrs or eAct[2] > dPriority[nErrorStart]: |
︙ | |||
693 694 695 696 697 698 699 | 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 | - + - - + + - + - + - + - + - + - - - + + + - + - + - + - + - + - + + + + + + + + | print("# error: unknown action at " + sLineId) elif cActionType == ">": break except Exception as e: raise Exception(str(e), sLineId) return bChange, dErrs |
︙ |
Modified gc_lang/fr/rules_graph.grx from [4b06e6712a] to [7f8d7a1159].
︙ | |||
71 72 73 74 75 76 77 | 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | - - + + - + | il ne pense qu’ à sa gueule <<- ~4:7>> que|Z|a|perdu TEST: il ne pense qu’à sa gueule. __avoir_confiance_en__ |
︙ | |||
102 103 104 105 106 107 108 | 102 103 104 105 106 107 108 109 110 111 112 | - - + + - + | <<- -2>> plaisir # Faire plaisir : dans cette locution, “plaisir” doit être au singulier. <<- ~2>> * TEST: Ça me fait {{plaisirs}}. __test__ |