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

  • Test Walker.get/set for bidirectional mapping between source code and data class
  • Annotate sqlite3 grammar with named nodes and data classes

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.3.tar.gz (29.3 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.3-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: syncraft-0.1.3.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

Hashes for syncraft-0.1.3.tar.gz
Algorithm Hash digest
SHA256 60b99de36e936e4f90648861a6dd8ac985b8dc14f92b9d12eb6ccb218eaf7722
MD5 0a9e5bd474e68c40424393fb43bd87be
BLAKE2b-256 49c365074e61b47445747854ceb67b29c8486a3cfe0e1faf67a7cc9c3707e1ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syncraft-0.1.3-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

Hashes for syncraft-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 240690c3448bd0321417262ad55c18e71041d0ed0c32b18bd7195c45473e8c76
MD5 20d8950bc975377d4130ba6dd70519f4
BLAKE2b-256 6325c79b4420371c7c2c9a57c3b68e810f2df7883a0df0e83c8d3c230d3dec94

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