syncraft 0.1.35__tar.gz → 0.1.37__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.
Files changed (26) hide show
  1. {syncraft-0.1.35 → syncraft-0.1.37}/PKG-INFO +1 -1
  2. {syncraft-0.1.35 → syncraft-0.1.37}/pyproject.toml +1 -1
  3. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft/finder.py +3 -2
  4. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft.egg-info/PKG-INFO +1 -1
  5. {syncraft-0.1.35 → syncraft-0.1.37}/LICENSE +0 -0
  6. {syncraft-0.1.35 → syncraft-0.1.37}/README.md +0 -0
  7. {syncraft-0.1.35 → syncraft-0.1.37}/setup.cfg +0 -0
  8. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft/__init__.py +0 -0
  9. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft/algebra.py +0 -0
  10. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft/ast.py +0 -0
  11. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft/constraint.py +0 -0
  12. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft/diagnostic.py +0 -0
  13. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft/generator.py +0 -0
  14. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft/parser.py +0 -0
  15. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft/py.typed +0 -0
  16. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft/sqlite3.py +0 -0
  17. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft/syntax.py +0 -0
  18. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft.egg-info/SOURCES.txt +0 -0
  19. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft.egg-info/dependency_links.txt +0 -0
  20. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft.egg-info/requires.txt +0 -0
  21. {syncraft-0.1.35 → syncraft-0.1.37}/syncraft.egg-info/top_level.txt +0 -0
  22. {syncraft-0.1.35 → syncraft-0.1.37}/tests/test_bimap.py +0 -0
  23. {syncraft-0.1.35 → syncraft-0.1.37}/tests/test_find.py +0 -0
  24. {syncraft-0.1.35 → syncraft-0.1.37}/tests/test_parse.py +0 -0
  25. {syncraft-0.1.35 → syncraft-0.1.37}/tests/test_to.py +0 -0
  26. {syncraft-0.1.35 → syncraft-0.1.37}/tests/test_until.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: syncraft
3
- Version: 0.1.35
3
+ Version: 0.1.37
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.35"
3
+ version = "0.1.37"
4
4
  description = "Parser combinator library"
5
5
  license = "MIT"
6
6
  license-files = ["LICENSE"]
@@ -35,8 +35,9 @@ def matches(syntax: Syntax[Any, Any], data: ParseResult[Any])-> bool:
35
35
 
36
36
 
37
37
  def find(syntax: Syntax[Any, Any], data: ParseResult[Any]) -> YieldGen[ParseResult[Any], None, None]:
38
- if matches(syntax, data):
39
- yield data
38
+ if not isinstance(data, Marked):
39
+ if matches(syntax, data):
40
+ yield data
40
41
  match data:
41
42
  case Then(left=left, right=right):
42
43
  if left is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: syncraft
3
- Version: 0.1.35
3
+ Version: 0.1.37
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
File without changes
File without changes
File without changes
File without changes