syncraft 0.1.16__py3-none-any.whl → 0.1.18__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.
Potentially problematic release.
This version of syncraft might be problematic. Click here for more details.
- syncraft/ast.py +2 -0
- syncraft/generator.py +4 -1
- {syncraft-0.1.16.dist-info → syncraft-0.1.18.dist-info}/METADATA +1 -1
- {syncraft-0.1.16.dist-info → syncraft-0.1.18.dist-info}/RECORD +7 -7
- {syncraft-0.1.16.dist-info → syncraft-0.1.18.dist-info}/WHEEL +0 -0
- {syncraft-0.1.16.dist-info → syncraft-0.1.18.dist-info}/licenses/LICENSE +0 -0
- {syncraft-0.1.16.dist-info → syncraft-0.1.18.dist-info}/top_level.txt +0 -0
syncraft/ast.py
CHANGED
syncraft/generator.py
CHANGED
|
@@ -111,6 +111,7 @@ def token_type_from_string(token_type: Optional[TokenType], text: str, case_sens
|
|
|
111
111
|
|
|
112
112
|
@dataclass(frozen=True)
|
|
113
113
|
class TokenGen(TokenSpec):
|
|
114
|
+
|
|
114
115
|
def __str__(self) -> str:
|
|
115
116
|
tt = self.token_type.name if self.token_type else ""
|
|
116
117
|
txt = self.text if self.text else ""
|
|
@@ -141,7 +142,9 @@ class TokenGen(TokenSpec):
|
|
|
141
142
|
self.case_sensitive),
|
|
142
143
|
text=text)
|
|
143
144
|
|
|
144
|
-
|
|
145
|
+
@staticmethod
|
|
146
|
+
def from_string(string: str)->Token:
|
|
147
|
+
return Token(token_type=token_type_from_string(None, string, case_sensitive=False), text=string)
|
|
145
148
|
|
|
146
149
|
|
|
147
150
|
@dataclass(frozen=True)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
syncraft/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
syncraft/algebra.py,sha256=l_ptzSkXbRGSLzu46GXixcNQPdXAi1s5R9nRDI86JkY,22785
|
|
3
|
-
syncraft/ast.py,sha256=
|
|
3
|
+
syncraft/ast.py,sha256=9CuHqXRiw_7UMDLd4x2def3kHgTVQ0hnPxyIbBlx1Zc,4640
|
|
4
4
|
syncraft/cmd.py,sha256=DzXgU8QLVOg0YTFKpmOyzbf02LKPphQ4EeKSLzqpJ_s,2012
|
|
5
5
|
syncraft/diagnostic.py,sha256=_kLbl1LlU4Y2PtsLLZFA_OLqeZqq1f2rjT_LRXLnDaI,2813
|
|
6
6
|
syncraft/dsl.py,sha256=AxAZKu6MBfaG7Wzss3UISbQsrFaigc1L-hS3p_CAXWQ,13620
|
|
7
|
-
syncraft/generator.py,sha256=
|
|
7
|
+
syncraft/generator.py,sha256=FpKfRPYvA0Wu-eKy7GUj_Xahz3e58sD0fZ3bXoTVIzY,11432
|
|
8
8
|
syncraft/parser.py,sha256=c1cCCW0RNw2y4XlNIUkrMf7q5lkm8wes4v5xbjLAUGg,11573
|
|
9
9
|
syncraft/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
syncraft/sqlite3.py,sha256=WR4wFf2CraRkb7C5rph3wsu6sGbG_7EjEZDUsPH8xqU,34677
|
|
11
|
-
syncraft-0.1.
|
|
12
|
-
syncraft-0.1.
|
|
13
|
-
syncraft-0.1.
|
|
14
|
-
syncraft-0.1.
|
|
15
|
-
syncraft-0.1.
|
|
11
|
+
syncraft-0.1.18.dist-info/licenses/LICENSE,sha256=wHSV424U5csa3339dy1AZbsz2xsd0hrkMx2QK48CcUk,1062
|
|
12
|
+
syncraft-0.1.18.dist-info/METADATA,sha256=Ga4qLGYK64owCQOyGXgQocU-e4FXtK2jNv5RQT3eDS0,946
|
|
13
|
+
syncraft-0.1.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
14
|
+
syncraft-0.1.18.dist-info/top_level.txt,sha256=Kq3t8ESXB2xW1Xt3uPmkENFc-c4f2pamNmaURBk7zc8,9
|
|
15
|
+
syncraft-0.1.18.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|