Grammalecte  Check-in [bd8a228792]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[build] prevent false warning
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | build
Files: files | file ages | folders
SHA3-256:bd8a228792c6f9203d5ba96afcbb82e3f25799c90d61fab8cf0b6f5d8f0087bc
User & Date: olr 2019-06-15 20:14:33
Context
2019-06-16
09:31
[build][core][fr] suggestion engine: register common names derivated from verbs check-in: 19dcb29939 user: olr tags: build, core, fr, trunk
2019-06-15
20:14
[build] prevent false warning check-in: bd8a228792 user: olr tags: build, trunk
20:14
[fr] ajustements check-in: 2a9a92a26f user: olr tags: fr, trunk
Changes

Changes to compile_rules_graph.py.

185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
        if int(x.group(1)) > nToken:
            print("# Error in token index at line " + sActionId + " ("+str(nToken)+" tokens only)")
            print(sText)


def checkIfThereIsCode (sText, sActionId):
    "check if there is code in <sText> (debugging)"
    if re.search("[.]\\w+[(]|sugg\\w+[(]|\\([0-9]|\\[[0-9]", sText):
        print("# Warning at line " + sActionId + ":  This message looks like code. Line should probably begin with =")
        print(sText)


def createAction (sActionId, sAction, nPriority, dOptPriority, nToken, dPos):
    "create action rule as a list"
    # Option







|







185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
        if int(x.group(1)) > nToken:
            print("# Error in token index at line " + sActionId + " ("+str(nToken)+" tokens only)")
            print(sText)


def checkIfThereIsCode (sText, sActionId):
    "check if there is code in <sText> (debugging)"
    if re.search(r"[.]\w+[(]|sugg\w+[(]|\(\\[0-9]|\[[0-9]", sText):
        print("# Warning at line " + sActionId + ":  This message looks like code. Line should probably begin with =")
        print(sText)


def createAction (sActionId, sAction, nPriority, dOptPriority, nToken, dPos):
    "create action rule as a list"
    # Option