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.21.tar.gz
(27.9 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.21-py3-none-any.whl
(29.1 kB
view details)
File details
Details for the file syncraft-0.1.21.tar.gz.
File metadata
- Download URL: syncraft-0.1.21.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f0116bbaaeef922f28b8446281e941d66daeb46ba0fddb84f1c4c3f5992621c
|
|
| MD5 |
fcabbeafbfcb7c8e6197495f1212697f
|
|
| BLAKE2b-256 |
567d3c55af4b0daa089eec4dcc8704b24d9dd99d992ba9d5bd40817f6898bc16
|
File details
Details for the file syncraft-0.1.21-py3-none-any.whl.
File metadata
- Download URL: syncraft-0.1.21-py3-none-any.whl
- Upload date:
- Size: 29.1 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 |
094ee0b5ea852c4d2d19da4a75669175ed1bd09f5f41fe9d891d611c73eb3458
|
|
| MD5 |
58d2bbc64867bebf6d8798544ea4df1e
|
|
| BLAKE2b-256 |
a1ffc987ec2da74e8b9c2507567299feff251aa402c010b59ec1b42da0d859ce
|