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.
- {syncraft-0.1.26 → syncraft-0.1.27}/PKG-INFO +1 -1
- {syncraft-0.1.26 → syncraft-0.1.27}/pyproject.toml +1 -1
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/ast.py +4 -4
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/finder.py +4 -4
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/generator.py +2 -2
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/syntax.py +1 -1
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft.egg-info/PKG-INFO +1 -1
- {syncraft-0.1.26 → syncraft-0.1.27}/LICENSE +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/README.md +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/setup.cfg +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/__init__.py +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/algebra.py +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/constraint.py +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/diagnostic.py +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/parser.py +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/py.typed +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft/sqlite3.py +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft.egg-info/SOURCES.txt +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft.egg-info/dependency_links.txt +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft.egg-info/requires.txt +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/syncraft.egg-info/top_level.txt +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/tests/test_bimap.py +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/tests/test_parse.py +0 -0
- {syncraft-0.1.26 → syncraft-0.1.27}/tests/test_until.py +0 -0
|
@@ -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,
|
|
7
|
+
Dict, Generic, Callable, Union, Protocol
|
|
8
8
|
)
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
from dataclasses import dataclass
|
|
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,
|
|
4
|
+
Any, Tuple, Generator as YieldGen
|
|
5
5
|
)
|
|
6
|
-
from dataclasses import dataclass
|
|
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
|
-
|
|
13
|
+
|
|
14
14
|
from syncraft.syntax import Syntax
|
|
15
|
-
|
|
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,
|
|
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,
|
|
14
|
+
T, ParseResult, AST, Token, TokenSpec,
|
|
15
15
|
Bindable,
|
|
16
16
|
Choice, Many, ChoiceKind,
|
|
17
17
|
Then, ThenKind, Marked
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|