Parser combinator library
Project description
Syncraft
Syncraft is a parser/generator combinator library with full round-trip support:
- Parse source code into AST or dataclasses
- Generate source code from dataclasses
- Bidirectional transformations via lenses
- Convenience combinators:
all,first,last,named - SQLite syntax support included
Installation
pip install syncraft
TODO
- Test Walker.get/set for bidirectional mapping between source code and data class
- Annotate sqlite3 grammar with named nodes and data classes
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.1.18.tar.gz
(27.1 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.1.18-py3-none-any.whl
(27.8 kB
view details)
File details
Details for the file syncraft-0.1.18.tar.gz.
File metadata
- Download URL: syncraft-0.1.18.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14369f58020aa0e3d28b17ab3fee1e38a07318f643d9544f17cdeaa37ec67438
|
|
| MD5 |
f181354bad061c2aa3dc5749d419237e
|
|
| BLAKE2b-256 |
9da83e052a42f60ebf6760cc6dda5beb3f15cf3b48ac2cf3e674609bad8c919e
|
File details
Details for the file syncraft-0.1.18-py3-none-any.whl.
File metadata
- Download URL: syncraft-0.1.18-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20ab083620b3f0f50858c3bcc778f929e11a5f7a8eda6e0b055366dbe7195279
|
|
| MD5 |
8e754365eaca1610760afc93797600a2
|
|
| BLAKE2b-256 |
4813a13496fca1da686bed482cc566519c8339be0bf3638886a3ca6fa3e4c85f
|