Overview
| Comment: | [build] graph builder: add comment | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | build | rg | 
| Files: | files | file ages | folders | 
| SHA3-256: | 
2f915c42dc731ed6cf174fe5f45d965b | 
| User & Date: | olr on 2018-06-12 18:22:18 | 
| Other Links: | branch diff | manifest | tags | 
Context
| 
   2018-06-12 
 | ||
| 19:55 | [fr] conversion: regex -> graph rules check-in: 3d50852f45 user: olr tags: fr, rg | |
| 18:22 | [build] graph builder: add comment check-in: 2f915c42dc user: olr tags: build, rg | |
| 18:13 | [fr] conversion: regex -> graph rules check-in: 31eae890f7 user: olr tags: fr, rg | |
Changes
Modified compile_rules_graph.py from [7468e7643c] to [a4f6103185].
| ︙ | ︙ | |||
169 170 171 172 173 174 175  | 
            else:
                for x in re.finditer(r"\\(\d+)", sMsg):
                    if int(x.group(1)) > nToken:
                        print("# Error in token index in message at line " + sIdAction + " ("+str(nToken)+" tokens only)")
                if re.search("[.]\\w+[(]", sMsg):
                    print("# Error in message at line " + sIdAction + ":  This message looks like code. Line should begin with =")
            
 | | < <  | 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189  | 
            else:
                for x in re.finditer(r"\\(\d+)", sMsg):
                    if int(x.group(1)) > nToken:
                        print("# Error in token index in message at line " + sIdAction + " ("+str(nToken)+" tokens only)")
                if re.search("[.]\\w+[(]", sMsg):
                    print("# Error in message at line " + sIdAction + ":  This message looks like code. Line should begin with =")
            
    # checking consistancy
    if cAction == "=" or sAction[0:1] == "=":
        if "define" in sAction and not re.search(r"define\(\\\d+ *, *\[.*\] *\)", sAction):
            print("# Error in action at line " + sIdAction + ": second argument for define must be a list of strings")
        for x in re.finditer(r"\\(\d+)", sAction):
            if int(x.group(1)) > nToken:
                print("# Error in token index in replacement at line " + sIdAction + " ("+str(nToken)+" tokens only)")
    if sAction[0:1] != "=":
        if re.search("[.]\\w+[(]|sugg\\w+[(]", sAction):
            print("# Error in action at line " + sIdAction + ":  This action looks like code. Line should begin with =")
    if cAction == "-":
        ## error detected --> suggestion
        if not sAction:
 | 
| ︙ | ︙ |