syncraft 0.1.26__py3-none-any.whl → 0.1.27__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 CHANGED
@@ -4,14 +4,13 @@ from __future__ import annotations
4
4
  import re
5
5
  from typing import (
6
6
  Optional, Any, TypeVar, Tuple, runtime_checkable,
7
- Dict, Generic, Callable, Union, cast, List, Protocol, Type
7
+ Dict, Generic, Callable, Union, Protocol
8
8
  )
9
9
 
10
10
 
11
- from dataclasses import dataclass, replace, is_dataclass, asdict
11
+ from dataclasses import dataclass
12
12
  from enum import Enum
13
-
14
- from syncraft.constraint import Binding, Variable, Bindable
13
+ from syncraft.constraint import Bindable
15
14
 
16
15
 
17
16
 
@@ -106,6 +105,7 @@ class AST:
106
105
  class ChoiceKind(Enum):
107
106
  LEFT = 'left'
108
107
  RIGHT = 'right'
108
+
109
109
  @dataclass(frozen=True)
110
110
  class Choice(Generic[A, B], AST):
111
111
  kind: ChoiceKind
syncraft/finder.py CHANGED
@@ -1,18 +1,18 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from typing import (
4
- Any, Tuple, Optional, Generator as YieldGen
4
+ Any, Tuple, Generator as YieldGen
5
5
  )
6
- from dataclasses import dataclass, replace
6
+ from dataclasses import dataclass
7
7
  from syncraft.algebra import (
8
8
  Algebra, Either, Right,
9
9
  )
10
10
  from syncraft.ast import T, ParseResult, Choice, Many, Then, Marked
11
11
 
12
12
  from syncraft.generator import GenState, Generator
13
- from sqlglot import TokenType
13
+
14
14
  from syncraft.syntax import Syntax
15
- import re
15
+
16
16
 
17
17
 
18
18
  @dataclass(frozen=True)
syncraft/generator.py CHANGED
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from typing import (
4
- Any, TypeVar, Tuple, Optional, Callable, Generic, cast,
4
+ Any, TypeVar, Tuple, Optional, Callable, Generic,
5
5
  List,
6
6
  )
7
7
  from functools import cached_property
@@ -11,7 +11,7 @@ from syncraft.algebra import (
11
11
  )
12
12
 
13
13
  from syncraft.ast import (
14
- T, ParseResult, AST, Token, TokenSpec, Binding, Variable,
14
+ T, ParseResult, AST, Token, TokenSpec,
15
15
  Bindable,
16
16
  Choice, Many, ChoiceKind,
17
17
  Then, ThenKind, Marked
syncraft/syntax.py CHANGED
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from typing import (
4
- Optional, List, Any, TypeVar, Generic, Callable, Tuple, cast,
4
+ Optional, Any, TypeVar, Generic, Callable, Tuple, cast,
5
5
  Type, Literal
6
6
  )
7
7
  from dataclasses import dataclass, field, replace
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: syncraft
3
- Version: 0.1.26
3
+ Version: 0.1.27
4
4
  Summary: Parser combinator library
5
5
  Author-email: Michael Afmokt <michael@esacca.com>
6
6
  License-Expression: MIT
@@ -0,0 +1,16 @@
1
+ syncraft/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ syncraft/algebra.py,sha256=FBy0cCl4RGnsi1uxoIIZPRcHgfHxWwUal9iLV_Mtc6I,14791
3
+ syncraft/ast.py,sha256=5WW3NsnCWWPLHr1tP2dDrZQgkl03h4xsz9zJsaABaq0,5049
4
+ syncraft/constraint.py,sha256=uT-ELzvv8J-s-Y1VYkXePUezseqCLhqzYUzFBYs0HsE,6418
5
+ syncraft/diagnostic.py,sha256=cgwcQnCcgrCRX3h-oGTDb5rcJAtitPV3LfH9eLvO93E,2837
6
+ syncraft/finder.py,sha256=GJYnUyBlteMb9gblVKkwy_vVxOMxTwP5P80tWA3kM2Q,1813
7
+ syncraft/generator.py,sha256=CGasCEu79ce8pC56Lb6_gcGCS7pHN6MERv5OEh_Cl-c,11751
8
+ syncraft/parser.py,sha256=UpNtTckygIwWG8cX2ZvdEcUi3Il8gpC7aZAzPKx2crg,11289
9
+ syncraft/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ syncraft/sqlite3.py,sha256=Pq09IHZOwuWg5W82l9D1flzd36QV0TOHQpTJ5U02V8g,34701
11
+ syncraft/syntax.py,sha256=JqydSdFkD4Bj0A-S6tqM47ZSbDQEoioNBhOy0WqCEY8,15005
12
+ syncraft-0.1.27.dist-info/licenses/LICENSE,sha256=wHSV424U5csa3339dy1AZbsz2xsd0hrkMx2QK48CcUk,1062
13
+ syncraft-0.1.27.dist-info/METADATA,sha256=vF7-9O08fDH43chYaXyXqKNvwPwuWbIfrROdSCag2wA,1199
14
+ syncraft-0.1.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ syncraft-0.1.27.dist-info/top_level.txt,sha256=Kq3t8ESXB2xW1Xt3uPmkENFc-c4f2pamNmaURBk7zc8,9
16
+ syncraft-0.1.27.dist-info/RECORD,,
@@ -1,16 +0,0 @@
1
- syncraft/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- syncraft/algebra.py,sha256=FBy0cCl4RGnsi1uxoIIZPRcHgfHxWwUal9iLV_Mtc6I,14791
3
- syncraft/ast.py,sha256=WwkA02H00BUNrotsMbvypzqHzJb8HiWROVb3qBDSR-8,5113
4
- syncraft/constraint.py,sha256=uT-ELzvv8J-s-Y1VYkXePUezseqCLhqzYUzFBYs0HsE,6418
5
- syncraft/diagnostic.py,sha256=cgwcQnCcgrCRX3h-oGTDb5rcJAtitPV3LfH9eLvO93E,2837
6
- syncraft/finder.py,sha256=qrBlPzQ3hK0rsLIfTD0QdypbrPegDKKCMZriWu-qHBA,1870
7
- syncraft/generator.py,sha256=BiwwFTjPkk7itXK1wAbB7SJhHi8npd0Wx_3bxR6t1Ww,11775
8
- syncraft/parser.py,sha256=UpNtTckygIwWG8cX2ZvdEcUi3Il8gpC7aZAzPKx2crg,11289
9
- syncraft/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- syncraft/sqlite3.py,sha256=Pq09IHZOwuWg5W82l9D1flzd36QV0TOHQpTJ5U02V8g,34701
11
- syncraft/syntax.py,sha256=aMXnAuGD12_WQxv0TIEvVw-7EO8Bupv0AD1hy6nMJMw,15011
12
- syncraft-0.1.26.dist-info/licenses/LICENSE,sha256=wHSV424U5csa3339dy1AZbsz2xsd0hrkMx2QK48CcUk,1062
13
- syncraft-0.1.26.dist-info/METADATA,sha256=h5K3SkaNZtfxw3hD5uc7Ac3D92XJMYCll8cMigf8rvs,1199
14
- syncraft-0.1.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- syncraft-0.1.26.dist-info/top_level.txt,sha256=Kq3t8ESXB2xW1Xt3uPmkENFc-c4f2pamNmaURBk7zc8,9
16
- syncraft-0.1.26.dist-info/RECORD,,