Grammalecte  Check-in [79ac578eed]

Overview
Comment:[build][bug] action detection
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: 79ac578eedc9aa44d563867a281e88b5d59d36ebbc56371323829e20f8292379
User & Date: olr on 2018-07-01 16:48:04
Other Links: branch diff | manifest | tags
Context
2018-07-01
16:48
[fr] conversion: regex rules -> graph rules check-in: 6513d221f2 user: olr tags: fr, rg
16:48
[build][bug] action detection check-in: 79ac578eed user: olr tags: build, rg
11:53
[fr] conversion: regex rules -> graph rules check-in: a67a9dcdd9 user: olr tags: fr, rg
Changes

Modified compile_rules_graph.py from [0d29a9266b] to [cca8a6a75e].

152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
    # Option
    sOption = False
    m = re.match("/(\\w+)/", sAction)
    if m:
        sOption = m.group(1)
        sAction = sAction[m.end():].strip()
    # valid action?
    m = re.search("(?P<action>[-~=/])(?P<start>\\d+|)(?P<end>:\\d+|)>> ", sAction)
    if not m:
        print(" # Error. No action found at: ", sActionId)
        print("   ==", sAction, "==")
        return None
    # Condition
    sCondition = sAction[:m.start()].strip()
    if sCondition:







|







152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
    # Option
    sOption = False
    m = re.match("/(\\w+)/", sAction)
    if m:
        sOption = m.group(1)
        sAction = sAction[m.end():].strip()
    # valid action?
    m = re.search(r"(?P<action>[-~=/>])(?P<start>\d+|)(?P<end>:\d+|)>>", sAction)
    if not m:
        print(" # Error. No action found at: ", sActionId)
        print("   ==", sAction, "==")
        return None
    # Condition
    sCondition = sAction[:m.start()].strip()
    if sCondition: