Skip to main content

Parser combinator library

Project description

Syncraft

Syncraft is a parser/generator combinator library for Python. It helps you

  • Build grammars
  • Parse SQL statement to AST
  • Search AST by grammar
  • Convert AST to dataclass
  • Check constraints over the AST/dataclass
  • Change dataclass and convert back to AST

Installation

pip

pip install syncraft

uv

uv add syncraft

Python 3.10+ is required.

With pip

pip install syncraft[dev]

With uv

uv sync --group dev 

TODO

  • debug constraint.datalog
  • debug sqlite3
  • collect terminal from syntax and build PLY lexer
  • chunker
  • unify in find

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.2.7.tar.gz (46.7 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.2.7-py3-none-any.whl (48.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for syncraft-0.2.7.tar.gz
Algorithm Hash digest
SHA256 57dfde27052762690ac7313b58d17131e58a2ac8d1fd22e1d073cbf3bf7c2bae
MD5 2596b8ed8d3c1ca13c09f9e5960ca42f
BLAKE2b-256 d7e64a012fee912de1be98f399aa7eea978e10302c60fe8ea3d8bffa6f24dc2e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for syncraft-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a76382160a5e2e3fd2aac9cccd2fb5afdf1c078ba4e8c34dd0afb780e386db6d
MD5 80924ff22d07bc547e9ff3ba6f7829bd
BLAKE2b-256 3b439539246aeb71f09921c5406b2e7c2186d6ca7c75f9633f5827302b830031

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