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
  • SQLite syntax support included

Installation

pip install syncraft

TODO

  • simplify the result of then_left and then_right by bimap the result in syntax.
  • simplify the result of sep_by and between by bimap the result in syntax
  • convert to dict/dataclass via bimap in syntax
  • define DSL over Variable to construct predicates
  • 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.28.tar.gz (29.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.28-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: syncraft-0.1.28.tar.gz
  • Upload date:
  • Size: 29.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.28.tar.gz
Algorithm Hash digest
SHA256 91a2ed2b70fcbe0d02c2e5ce8dccdfe18b1021085736ca89b409e5326e974643
MD5 dcebb77c97ad38b2b0cddd1f01b47f03
BLAKE2b-256 a2300f75887c8e73c066f93cd457acc1094158f649aa307296a9ddb75662f1df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syncraft-0.1.28-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.28-py3-none-any.whl
Algorithm Hash digest
SHA256 973db05dd40f1e839b7599c80cdd01c6d1f5538bc78b37a1f8fb37988f0205a1
MD5 3bcb95d6f6ff3e822478c9ceb7959464
BLAKE2b-256 fa0938ae052ae010c93bd2c962ac90a95512ff2b9cf832a28998debcd4663f99

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