Overview
Comment: | [build] remove print() |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | build |
Files: | files | file ages | folders |
SHA3-256: |
284ea35ba0f7718d3ebfc71e2de486e7 |
User & Date: | olr on 2019-07-19 13:47:46 |
Other Links: | manifest | tags |
Context
2019-07-19
| ||
16:47 | [build][misc][fr] antipatterns for token rules, +syntax for SublimeText, +ajustements check-in: 6d63ab4c87 user: olr tags: trunk, fr, build, new_feature, misc | |
13:47 | [build] remove print() check-in: 284ea35ba0 user: olr tags: trunk, build | |
11:34 | [build][fr] declensions for tokens check-in: 340b41b40a user: olr tags: trunk, fr, build, new_feature | |
Changes
Modified compile_rules_graph.py from [29019118d7] to [6934d9eabf].
︙ | ︙ | |||
137 138 139 140 141 142 143 | def createTokenList (sTokBlock, dDeclensions): "return a list of tokens from a block of tokens" lToken = [] for sToken in sTokBlock[1:-1].split("|"): if "+" in sToken and not sToken.startswith("+"): | < < < | 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | def createTokenList (sTokBlock, dDeclensions): "return a list of tokens from a block of tokens" lToken = [] for sToken in sTokBlock[1:-1].split("|"): if "+" in sToken and not sToken.startswith("+"): for sCode in dDeclensions: if sToken.endswith(sCode): sToken = sToken[:-len(sCode)] lToken.append(sToken) for sSuffix in dDeclensions[sCode]: lToken.append(sToken+sSuffix) break else: lToken.append(sToken) return lToken def createRule (iLine, sRuleName, sTokenLine, iActionBlock, sActions, nPriority, dOptPriority, dDef, dDecl): "generator: create rule as list" |
︙ | ︙ |