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

Uploaded Python 3

File details

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

File metadata

  • Download URL: syncraft-0.1.2.tar.gz
  • Upload date:
  • Size: 29.1 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.2.tar.gz
Algorithm Hash digest
SHA256 bbb6725f98eaa7d6ac507d7571b9e75529b1cd02dbef037dde37d6107761e127
MD5 6727ec9bf42bd0061b7afe03b9a17c3a
BLAKE2b-256 ef055714de4da5d7338a5a09aa0969b78f23ea794bc83d4052decdf5eef395ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syncraft-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c292168e535d991b66d301aa4ce84bff497a0e9b2ee823decfacc43c368f273d
MD5 d8077bc4b803c2c53c86d2c0385c8180
BLAKE2b-256 fb0b492a467a597f796ec2d8f1f7564ddb145f2a125ea5abd096cb506c7bbe01

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