Overview
| Comment: | [build] previous and next token for value function |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | build | rg |
| Files: | files | file ages | folders |
| SHA3-256: |
d4fc6acf129d34c5cd9f21c2055b5231 |
| User & Date: | olr on 2018-06-30 07:26:31 |
| Other Links: | branch diff | manifest | tags |
Context
|
2018-06-30
| ||
| 07:26 | [fr] conversion: regex rules -> graph rules check-in: 41a49a3d20 user: olr tags: fr, rg | |
| 07:26 | [build] previous and next token for value function check-in: d4fc6acf12 user: olr tags: build, rg | |
| 06:37 | [core][fr] non blocking tests (should have done that a long time ago) check-in: b2bb75501e user: olr tags: fr, core, rg | |
Changes
Modified compile_rules_graph.py from [8e700a8b33] to [0d29a9266b].
| ︙ | |||
18 19 20 21 22 23 24 | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | - - + + |
"convert simple rule syntax to a string of Python code"
s = s.replace("__also__", "bCondMemo")
s = s.replace("__else__", "not bCondMemo")
s = re.sub(r"(morph|analyse|value|displayInfo)[(]\\(\d+)", 'g_\\1(lToken[\\2+nTokenOffset]', s)
s = re.sub(r"(select|exclude|define)[(][\\](\d+)", 'g_\\1(lToken[\\2+nTokenOffset]', s)
s = re.sub(r"(tag_before|tag_after)[(][\\](\d+)", 'g_\\1(lToken[\\2+nTokenOffset], dTags', s)
s = re.sub(r"(switchGender|has(?:Mas|Fem)Form)[(]\\(\d+)", '\\1(lToken[\\2+nTokenOffset]["sValue"]', s)
|
| ︙ |