Grammalecte  Check-in [886177ba3e]

Overview
Comment:[core] gc engine: move plugins code
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | rg
Files: files | file ages | folders
SHA3-256: 886177ba3ea5e0b0b784ebb369671ac38f2d2a33486576f3177fa696cf1ff565
User & Date: olr on 2018-06-20 08:25:02
Other Links: branch diff | manifest | tags
Context
2018-06-20
08:27
[core] gc engine: move getSentenceBoundaries check-in: 7a0ff6e88c user: olr tags: core, rg
08:25
[core] gc engine: move plugins code check-in: 886177ba3e user: olr tags: core, rg
08:23
[build] darg builder: count tokens for action identifier check-in: 79f74bad72 user: olr tags: build, rg
Changes

Modified gc_core/py/lang_core/gc_engine.py from [743ad9cfa1] to [8ff23d9ea2].

572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
    if nPos not in dTokenPos:
        print("Error. There should be a token at this position: ", nPos)
        return True
    dTokenPos[nPos]["lMorph"] = lMorph
    return True


#### GRAMMAR CHECKER PLUGINS

${plugins}



#### TOKEN SENTENCE CHECKER

class TokenSentence:








<

<







572
573
574
575
576
577
578

579

580
581
582
583
584
585
586
    if nPos not in dTokenPos:
        print("Error. There should be a token at this position: ", nPos)
        return True
    dTokenPos[nPos]["lMorph"] = lMorph
    return True








#### TOKEN SENTENCE CHECKER

class TokenSentence:

980
981
982
983
984
985
986






987
988
989
990
991
992
993
994
995

def g_define (dToken, lMorph):
    "set morphologies of <dToken>, always return True"
    dToken["lMorph"] = lMorph
    #print("DA:", dToken["sValue"], lMorph)
    return True








#### CALLABLES FOR REGEX RULES (generated code)

${callables}


#### CALLABLES FOR GRAPH RULES (generated code)

${graph_callables}







>
>
>
>
>
>









978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999

def g_define (dToken, lMorph):
    "set morphologies of <dToken>, always return True"
    dToken["lMorph"] = lMorph
    #print("DA:", dToken["sValue"], lMorph)
    return True



#### GRAMMAR CHECKER PLUGINS

${plugins}


#### CALLABLES FOR REGEX RULES (generated code)

${callables}


#### CALLABLES FOR GRAPH RULES (generated code)

${graph_callables}