Skip to main content

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


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.22.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

syncraft-0.1.22-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file syncraft-0.1.22.tar.gz.

File metadata

  • Download URL: syncraft-0.1.22.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for syncraft-0.1.22.tar.gz
Algorithm Hash digest
SHA256 478148dc17807426deb48e49c2340e392b3123f069d70c5e22d9a6d4aea75d78
MD5 eb7a6d53d3d0b4f69ecc7332889ee725
BLAKE2b-256 b5b0af603aa2667862ebd494ab2d4936f1902f28b5ae8b4aff06be4def445a3c

See more details on using hashes here.

File details

Details for the file syncraft-0.1.22-py3-none-any.whl.

File metadata

  • Download URL: syncraft-0.1.22-py3-none-any.whl
  • Upload date:
  • Size: 30.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for syncraft-0.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 4df0cebf0e5970d86af8672579e5b77f7adeac1c576e96dad695ed869550ded1
MD5 9fb44513f5aab8e2d7076106227c0cc6
BLAKE2b-256 e8ea418d0d303b76b7d056deca37201e02c738691fdc02a70c2f2d47033d726a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page