Parser combinator library
Project description
Syncraft
Syncraft is a parser/generator combinator library for Python. It helps you
- Build grammars
- Parse SQL statement to AST
- Search AST by grammar
- Convert AST to dataclass
- Check constraints over the AST/dataclass
- Change dataclass and convert back to AST
Installation
pip
pip install syncraft
uv
uv add syncraft
Python 3.10+ is required.
With pip
pip install syncraft[dev]
With uv
uv sync --group dev
TODO
- Static analysis tool based on Syntax.graph
- Profile hook on Cache
- try_parse based on Syntax.parallel
- regex.py convert Regex to FABuilder
- Semantic layer (datalog + unification).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
syncraft-0.3.2.tar.gz
(130.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
syncraft-0.3.2-py3-none-any.whl
(131.9 kB
view details)
File details
Details for the file syncraft-0.3.2.tar.gz.
File metadata
- Download URL: syncraft-0.3.2.tar.gz
- Upload date:
- Size: 130.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d04f75473aa0075903df5f821e0339258c84c043bd937485dd13acbca739709
|
|
| MD5 |
e05232df859005cda807b56f7dee05e5
|
|
| BLAKE2b-256 |
3ab66f782f71a6715b4470072bae557a7eec5f5ba4c5d2132a0326046633dbeb
|
File details
Details for the file syncraft-0.3.2-py3-none-any.whl.
File metadata
- Download URL: syncraft-0.3.2-py3-none-any.whl
- Upload date:
- Size: 131.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60efb837740b261e29e9af739d9b4d65d661d35d5ff73889e6f0190bd7f7b6bf
|
|
| MD5 |
88d02117ce10ee0de452a4e7a1256b07
|
|
| BLAKE2b-256 |
d77f65642637462c1e7a971d2351d0297bbe5d7ad3031c5eadf9c487be776c24
|