Overview
Comment: | [build] new command for future graph rules |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | build |
Files: | files | file ages | folders |
SHA3-256: |
c4eb507f6d82a2d6c53a174ffcc00e38 |
User & Date: | olr on 2018-02-21 11:53:37 |
Other Links: | manifest | tags |
Context
2018-02-21
| ||
19:13 | [graphspell][py] new functions: getLemma() and countWordsOccurrences() check-in: d205a5a601 user: olr tags: trunk, graphspell | |
11:53 | [build] new command for future graph rules check-in: c4eb507f6d user: olr tags: trunk, build | |
2018-02-20
| ||
13:51 | [server] use gc wrapper check-in: a7e5364e1d user: olr tags: trunk, server | |
Changes
Modified compile_rules.py from [9bd1433006] to [b3cfeb04f1].
︙ | |||
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 | 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 | + + + + + + | print(" parsing rules...") global dDEF lLine = [] lRuleLine = [] lTest = [] lOpt = [] zBookmark = re.compile("^!!+") zGraphLink = re.compile(r"^@@@@GRAPHLINK>(\w+)@@@@") for i, sLine in enumerate(lRules, 1): if sLine.startswith('#END'): printBookmark(0, "BREAK BY #END", i) break elif sLine.startswith("#"): pass elif sLine.startswith("@@@@"): m = re.match(r"^@@@@GRAPHLINK>(\w+)@@@@", sLine.strip()) if m: #lRuleLine.append(["@GRAPHLINK", m.group(1)]) printBookmark(1, "@GRAPHLINK: " + m.group(1), i) elif sLine.startswith("DEF:"): m = re.match("DEF: +([a-zA-Z_][a-zA-Z_0-9]*) +(.+)$", sLine.strip()) if m: dDEF["{"+m.group(1)+"}"] = m.group(2) else: print("Error in definition: ", end="") print(sLine.strip()) |
︙ |