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
- Add a collect method to AST to collect all named entries and pack them into a dict or a custom dataclass. This method will be called as the last step of my current bimap. So it shares the signature of bimap and can combine with the current bimap
- Amend all, first, last, and named helper functions to support bimap and named results.
- Try the parsing, generation, and data processing machinery on SQLite3 syntax. So that I can have direct feedback on the usability of this library and a fully functional SQLite3 library.
- Make the library as fast as possible and feasible.
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.20.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.20-py3-none-any.whl
(27.0 kB
view details)
File details
Details for the file syncraft-0.1.20.tar.gz.
File metadata
- Download URL: syncraft-0.1.20.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 |
8e0d2c54d30e478054554266507173acf33e51359118ba056c4b828fbe453558
|
|
| MD5 |
a632d7e7acc2df54f4d3427e21c0518e
|
|
| BLAKE2b-256 |
be8a8179dd78c65fa54129d5a56cfbf609498434de90812fc6a935f49a1fce2b
|
File details
Details for the file syncraft-0.1.20-py3-none-any.whl.
File metadata
- Download URL: syncraft-0.1.20-py3-none-any.whl
- Upload date:
- Size: 27.0 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 |
b141a672c4cdf67f99d77d0bc10b73a81d92a5c1a6cee2a9de05ea7b8a29dd2c
|
|
| MD5 |
ebfb820e522cd142c348d4059590ceff
|
|
| BLAKE2b-256 |
acfb00f34aad6a78601791feee8b0144e52da7efbd6f3e9efad98030f65145f7
|