syncraft 0.1.26__tar.gz → 0.1.27__tar.gz

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.

Files changed (24) hide show
  1. {syncraft-0.1.26 → syncraft-0.1.27}/PKG-INFO +1 -1
  2. {syncraft-0.1.26 → syncraft-0.1.27}/pyproject.toml +1 -1
  3. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/ast.py +4 -4
  4. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/finder.py +4 -4
  5. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/generator.py +2 -2
  6. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/syntax.py +1 -1
  7. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft.egg-info/PKG-INFO +1 -1
  8. {syncraft-0.1.26 → syncraft-0.1.27}/LICENSE +0 -0
  9. {syncraft-0.1.26 → syncraft-0.1.27}/README.md +0 -0
  10. {syncraft-0.1.26 → syncraft-0.1.27}/setup.cfg +0 -0
  11. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/__init__.py +0 -0
  12. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/algebra.py +0 -0
  13. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/constraint.py +0 -0
  14. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/diagnostic.py +0 -0
  15. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/parser.py +0 -0
  16. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/py.typed +0 -0
  17. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/sqlite3.py +0 -0
  18. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft.egg-info/SOURCES.txt +0 -0
  19. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft.egg-info/dependency_links.txt +0 -0
  20. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft.egg-info/requires.txt +0 -0
  21. {syncraft-0.1.26 → syncraft-0.1.27}/syncraft.egg-info/top_level.txt +0 -0
  22. {syncraft-0.1.26 → syncraft-0.1.27}/tests/test_bimap.py +0 -0
  23. {syncraft-0.1.26 → syncraft-0.1.27}/tests/test_parse.py +0 -0
  24. {syncraft-0.1.26 → syncraft-0.1.27}/tests/test_until.py +0 -0
@@ -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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "syncraft"
3
- version = "0.1.26"
3
+ version = "0.1.27"
4
4
  description = "Parser combinator library"
5
5
  license = "MIT"
6
6
  license-files = ["LICENSE"]
@@ -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
@@ -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)
@@ -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
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes