Skip to main content

panproto grammar pack: functional languages (Haskell, OCaml, Elm, Gleam, Erlang, Elixir, PureScript, F#, Clojure, Scheme, Racket)

Project description

panproto-grammars-functional

PyPI Python License: MIT

Companion grammar pack for panproto shipping tree-sitter grammars for functional-language source: Haskell, OCaml, Elm, Gleam, Erlang, Elixir, PureScript, F#, Clojure, Scheme, and Racket.

Companion packs are how the Python wheel adds tree-sitter grammars without bloating the core: panproto itself bundles only the 11-language group-core baseline, and packs like this one extend that surface as separate pip-installable wheels. Installing this package makes its grammars available to panproto.AstParserRegistry() automatically.

Status

Pre-1.0 with arbitrary breaking changes between minor versions. The pack version tracks the workspace panproto version on every release; consumers should pin both to the same minor (e.g. panproto>=0.45,<0.46 and panproto-grammars-functional>=0.45,<0.46).

Python 3.13+ required.

Installation

pip install panproto-grammars-functional

Wheels are published on PyPI for Linux x86_64 / aarch64, macOS arm64 / x86_64, and Windows x86_64. No Rust toolchain is required.

Pulls in panproto>=0.45 as a runtime dependency. If panproto is not already installed, pip resolves it automatically.

Synopsis

import panproto

reg = panproto.AstParserRegistry()
# The grammars from this pack are now in the registry alongside the
# group-core ones (Python, JavaScript, Rust, ...).
# schema = reg.parse_with_protocol("haskell", b"f x = x", "main.hs")

Nothing to import from this package directly. The architecture is described in bindings/python/README.md.

Languages

Haskell · OCaml · Elm · Gleam · Erlang · Elixir · PureScript · F# · Clojure · Scheme · Racket.

Architecture

Each companion is a separate pyo3 cdylib depending on panproto-grammars with one group-* feature flag. On installation it registers a panproto.grammars entry point that points at its _impl submodule; on construction panproto.AstParserRegistry() walks every such entry point and threads the discovered grammar metadata into the native registry. Cross-cdylib transport uses raw FFI pointers cast to integers; the trust boundary lives on the panproto side.

Source: crates/panproto-grammars-functional on the Rust side, bindings/python-grammars-functional on the Python side.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

panproto_grammars_functional-0.49.4-cp313-abi3-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.13+Windows x86-64

panproto_grammars_functional-0.49.4-cp313-abi3-manylinux_2_28_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13+manylinux: glibc 2.28+ x86-64

panproto_grammars_functional-0.49.4-cp313-abi3-manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.13+manylinux: glibc 2.28+ ARM64

panproto_grammars_functional-0.49.4-cp313-abi3-macosx_11_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13+macOS 11.0+ ARM64

panproto_grammars_functional-0.49.4-cp313-abi3-macosx_10_12_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13+macOS 10.12+ x86-64

File details

Details for the file panproto_grammars_functional-0.49.4-cp313-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.49.4-cp313-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5c3b6590bb392488eb7b8862504628bff5532c81cca88fc6ed3c0a3e8eab1433
MD5 cbc7a77644cf2f8553f48b7ab9bd1cbe
BLAKE2b-256 5dc4cc5e8f7106cba6258c9bb17c0de9f41299c28f5d0ef0b320a50cd7ad8329

See more details on using hashes here.

Provenance

The following attestation bundles were made for panproto_grammars_functional-0.49.4-cp313-abi3-win_amd64.whl:

Publisher: python-wheels-companions.yml on panproto/panproto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file panproto_grammars_functional-0.49.4-cp313-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.49.4-cp313-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 33c1efe238daf5a93fa7a651a47b117fe13cad67aca9521522f558bdc3b636e6
MD5 17735759122e5567d274a350c67d2f7f
BLAKE2b-256 3d60eb5160a81679484686a6d77c4874c8dc702ed6a075966583cc6cb31f3033

See more details on using hashes here.

Provenance

The following attestation bundles were made for panproto_grammars_functional-0.49.4-cp313-abi3-manylinux_2_28_x86_64.whl:

Publisher: python-wheels-companions.yml on panproto/panproto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file panproto_grammars_functional-0.49.4-cp313-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.49.4-cp313-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8ed8789a36c94be197a7ef392fa5a487a3d3fc4d0986ece93c6aa65b0e964ef4
MD5 edc2c5afee397afcec78c0688b21a99c
BLAKE2b-256 5e3a0c52640405dbb5a898ced1a33d989288e5b5290d79119c7a4f524fde2f2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for panproto_grammars_functional-0.49.4-cp313-abi3-manylinux_2_28_aarch64.whl:

Publisher: python-wheels-companions.yml on panproto/panproto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file panproto_grammars_functional-0.49.4-cp313-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.49.4-cp313-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f95f01cc2f6506096a7ce106737e790253602c02e7a8d754b61db21c38b8d537
MD5 b6e27895d1d026bc360d13ee94a2fe12
BLAKE2b-256 675a8a5a5bcc659169ea50d60b4b9ee050d4d2dac8b31f26afc72d29f66d9ced

See more details on using hashes here.

Provenance

The following attestation bundles were made for panproto_grammars_functional-0.49.4-cp313-abi3-macosx_11_0_arm64.whl:

Publisher: python-wheels-companions.yml on panproto/panproto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file panproto_grammars_functional-0.49.4-cp313-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.49.4-cp313-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5286e4bf012664e2d3d3bfa2d46839509e2a20de9309ebec409dbdaa9934e948
MD5 dc94609b59b18a15ab95e021e968520f
BLAKE2b-256 3dda42c4e8d337eded2d8613b8e6f79aabd1d75c828110efd067832b3aa8d0fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for panproto_grammars_functional-0.49.4-cp313-abi3-macosx_10_12_x86_64.whl:

Publisher: python-wheels-companions.yml on panproto/panproto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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