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.16.tar.gz (26.4 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.16-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: syncraft-0.1.16.tar.gz
  • Upload date:
  • Size: 26.4 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.16.tar.gz
Algorithm Hash digest
SHA256 90af4db7dbd65c3c243ad18331321acf824685e3a9097197e6d25f3787a62d51
MD5 72ef76500987a112569d5f4bff0d6248
BLAKE2b-256 3faae5f84acbb8a43b9405fb9bf3dd28d1bdd978ca07acd0b3984aaa75f1f958

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syncraft-0.1.16-py3-none-any.whl
  • Upload date:
  • Size: 27.7 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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 06285af2729b19ecc90139e088332d1aba4df8b64868772286572aa972a96e57
MD5 0e14b38d41e02e3fe9c3286fef970545
BLAKE2b-256 604a6546e719f8394792894291af0638cd4c50147a65720ac658f71fed97b88d

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