mapres 3.dev26__py3-none-any.whl → 3.dev27__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mapres/tokenizer.py +15 -14
- {mapres-3.dev26.dist-info → mapres-3.dev27.dist-info}/METADATA +1 -1
- {mapres-3.dev26.dist-info → mapres-3.dev27.dist-info}/RECORD +6 -6
- {mapres-3.dev26.dist-info → mapres-3.dev27.dist-info}/WHEEL +0 -0
- {mapres-3.dev26.dist-info → mapres-3.dev27.dist-info}/licenses/LICENSE +0 -0
- {mapres-3.dev26.dist-info → mapres-3.dev27.dist-info}/top_level.txt +0 -0
mapres/tokenizer.py
CHANGED
|
@@ -16,8 +16,9 @@ class TokenType(Enum):
|
|
|
16
16
|
PIPE_CLOSE = auto()
|
|
17
17
|
PERCENT_OPEN = auto()
|
|
18
18
|
PERCENT_CLOSE = auto()
|
|
19
|
-
LPAREN
|
|
20
|
-
|
|
19
|
+
# # LPAREN and RPAREN tokens were deprecated in mapres 3-dev.27 to fix a bug in the parser that caused it to fail on nested calls
|
|
20
|
+
# LPAREN = auto()
|
|
21
|
+
# RPAREN = auto()
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
class Token:
|
|
@@ -206,18 +207,18 @@ class Tokenizer:
|
|
|
206
207
|
self.advance()
|
|
207
208
|
continue
|
|
208
209
|
|
|
209
|
-
# --- parens ---
|
|
210
|
-
if ch == '(':
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
if ch == ')':
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
210
|
+
# # --- parens --- (This block was deprecated in mapres 3-dev.27)
|
|
211
|
+
# if ch == '(':
|
|
212
|
+
# flush_text()
|
|
213
|
+
# self.emit(TokenType.LPAREN)
|
|
214
|
+
# self.advance()
|
|
215
|
+
# continue
|
|
216
|
+
|
|
217
|
+
# if ch == ')':
|
|
218
|
+
# flush_text()
|
|
219
|
+
# self.emit(TokenType.RPAREN)
|
|
220
|
+
# self.advance()
|
|
221
|
+
# continue
|
|
221
222
|
|
|
222
223
|
# fallback TEXT
|
|
223
224
|
buf.append(ch)
|
|
@@ -7,13 +7,13 @@ mapres/exceptions.py,sha256=D2XKnrMkZDyUXQt2PmaKbj08FObWU00yXKGHwNpjvww,222
|
|
|
7
7
|
mapres/layers.py,sha256=sFc1eUOBg2BoB2cBXIleq8RMYcg5GZpUoCnGh-uKN6U,1380
|
|
8
8
|
mapres/parser.py,sha256=q3PgyvXJn9c-EJJYyibw7sHJ0Y9soirgB10OyTKaT9s,3657
|
|
9
9
|
mapres/resolver.py,sha256=ldSNSUg-yvk2LJnpyGpexYvPiVACFa4IMGHOFejGY_0,3889
|
|
10
|
-
mapres/tokenizer.py,sha256=
|
|
10
|
+
mapres/tokenizer.py,sha256=HXZBIlTbPA7T-w4kGHTLdHwuPokmXA5TQTrr2PzNeLA,8002
|
|
11
11
|
mapres/utils.py,sha256=Bv8iEeK03QtGtqY9GnBAgE4Bul56mGvAkLt96z6kU2k,137
|
|
12
12
|
mapres/maps/__init__.py,sha256=lIRRfem1Fw4iynuwUQ7BY5qrC4fbJKxqLivao2_Dtm4,239
|
|
13
13
|
mapres/maps/color.py,sha256=noRTGFNo9xLl5YEhX0tttV6i_oDAiptXmRVnkr5EzwM,1348
|
|
14
14
|
mapres/maps/time.py,sha256=TyncycYoIGVZWps32qWlFy2a2hTayvZWVHu9uh2nid8,2050
|
|
15
|
-
mapres-3.
|
|
16
|
-
mapres-3.
|
|
17
|
-
mapres-3.
|
|
18
|
-
mapres-3.
|
|
19
|
-
mapres-3.
|
|
15
|
+
mapres-3.dev27.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
16
|
+
mapres-3.dev27.dist-info/METADATA,sha256=00k_RRbyvuSG2qfbrJERAQ-48ZvcQBBbfyuMUHXhZ3Q,1476
|
|
17
|
+
mapres-3.dev27.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
18
|
+
mapres-3.dev27.dist-info/top_level.txt,sha256=5LMVQqJdtyjxfzv7wJBOZ-360m0Yc79w_-Y7s3n6cTw,7
|
|
19
|
+
mapres-3.dev27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|