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.5.tar.gz
(29.3 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.5-py3-none-any.whl
(28.1 kB
view details)
File details
Details for the file syncraft-0.1.5.tar.gz.
File metadata
- Download URL: syncraft-0.1.5.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bb4f2b8b8c433fa5f9332200a93a9d1dbfe85113f4f062139dbd223d88f486c
|
|
| MD5 |
8589ceef95101cdcee5e531937c9bc35
|
|
| BLAKE2b-256 |
14c86f11791c01bb3feabfec6f203f6b797723148055c7b549dce6b69ff4ed89
|
File details
Details for the file syncraft-0.1.5-py3-none-any.whl.
File metadata
- Download URL: syncraft-0.1.5-py3-none-any.whl
- Upload date:
- Size: 28.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 |
175cebacc81e2f87e4944eb0e6d170b5483e4196ad8044ef274f8d9215f9f070
|
|
| MD5 |
8062507bca6027c35f9077cec3e82929
|
|
| BLAKE2b-256 |
c77af2eeaf29ef6014b8156181e652c8b4cbea29d81a4f2507c19440cbbdfbf7
|