Overview
Comment: | [build] darg builder: optional tokens |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | build | rg |
Files: | files | file ages | folders |
SHA3-256: |
e3fd3fda284a5ba241c4b854a62e961d |
User & Date: | olr on 2018-06-18 07:01:32 |
Other Links: | branch diff | manifest | tags |
Context
2018-06-18
| ||
14:19 | [core] gc engine, graph parser: better debugging + fix token positioning while rewriting check-in: d5ac5b5af6 user: olr tags: core, rg | |
07:01 | [build] darg builder: optional tokens check-in: e3fd3fda28 user: olr tags: build, rg | |
04:58 | [build] darg builder: group selection + definition check-in: dc40a55790 user: olr tags: build, rg | |
Changes
Modified compile_rules_graph.py from [04c9d15dc9] to [1c73a8473c].
︙ | |||
35 36 37 38 39 40 41 42 43 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | + + + + + - + - + + - + - + + + + - - - - - - + + + + + + + + + - - - - - - + + + + - + + + - - + + + + + + + + | def genTokenLines (sTokenLine, dDef): "tokenize a string and return a list of lines of tokens" lToken = sTokenLine.split() lTokenLines = None for i, sToken in enumerate(lToken): # optional token? bNullPossible = sToken.startswith("?") and sToken.endswith("?") if bNullPossible: sToken = sToken[1:-1] # token with definition? if sToken.startswith("({") and sToken.endswith("})") and sToken[1:-1] in dDef: sToken = "(" + dDef[sToken[1:-1]] + ")" |
︙ |