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.8.tar.gz
(27.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.1.8-py3-none-any.whl
(29.3 kB
view details)
File details
Details for the file syncraft-0.1.8.tar.gz.
File metadata
- Download URL: syncraft-0.1.8.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3d644c9e2e7dff94f5965ea4675357434e533ee10c1e7880f50469f9c358398
|
|
| MD5 |
2f44c13612fe0a26bbf0c37ac09d6ad5
|
|
| BLAKE2b-256 |
f5b2bcbc412e82efd367936b029c1ba71a9ab1127b3198e88a40051d553da478
|
File details
Details for the file syncraft-0.1.8-py3-none-any.whl.
File metadata
- Download URL: syncraft-0.1.8-py3-none-any.whl
- Upload date:
- Size: 29.3 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 |
928f34624acba44e045558f58b585900423824e0e2ea9bad90eb47c48abc527c
|
|
| MD5 |
b8d7e101cb4a09ad00eed1d88044ac18
|
|
| BLAKE2b-256 |
86c1fe2ea02babdcc426ce6135ddaa34a86c225a6c4894d6c38ca86b78ec7fa1
|