Grammalecte  Diff

Differences From Artifact [743ad9cfa1]:

To Artifact [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}