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.5-cp313-abi3-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.13+Windows x86-64

panproto_grammars_functional-0.49.5-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.5-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.5-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.5-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.5-cp313-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.49.5-cp313-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dcb8141702b6bcfe0b1c1db8054f956a6890a7d7925e2fb8f6d76f4e7e9cadb3
MD5 44e6672d87c4fe4a988df0c4525a4318
BLAKE2b-256 0e43bb8758bf708c28ff26fd729b1d9de5e07510b08106a20bde9cb81e2b40ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for panproto_grammars_functional-0.49.5-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.5-cp313-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.49.5-cp313-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e86e47d16afbdd4e7fdaa5c0e9229cc04e06c98afdc447afc51b321f791dbfd
MD5 42a615325162f3f937692b99949a06ac
BLAKE2b-256 db2e1063e715bbdbccf13dfac604a5b6fd7efc2d570238948e9b21ea4e52f917

See more details on using hashes here.

Provenance

The following attestation bundles were made for panproto_grammars_functional-0.49.5-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.5-cp313-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.49.5-cp313-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2fa819bc63ec9568fa8e1a438d149b5ab7ff59dd4f702996429d0504fb6a8166
MD5 9f9e1b11be6c79c9fae42f575ab2f2e6
BLAKE2b-256 d1c604adcaf8c8b65206a25de9af791aa17e7b4f3f41d2b9877b669551898889

See more details on using hashes here.

Provenance

The following attestation bundles were made for panproto_grammars_functional-0.49.5-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.5-cp313-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.49.5-cp313-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca0417afbd6bb30b38d5459aab496c896ab4301c2bc20c337f81e65f09d5c352
MD5 9e38a90ac22f817bfe68365096892e80
BLAKE2b-256 692acc09c49d7b8210b8c8c7eede0ee1234d6382cd2d70e8f622b3264d879282

See more details on using hashes here.

Provenance

The following attestation bundles were made for panproto_grammars_functional-0.49.5-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.5-cp313-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.49.5-cp313-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 11a1e650aea96ab88bcf3cfd079c7bed4ab0a3ba69c316873c30ef339b35c9db
MD5 0f77cad6ef91af941041a0ed557a4b67
BLAKE2b-256 560037b723fd763babbcf60221b0a83b9cf2c6af1d41ca05e8ba94988fdfd212

See more details on using hashes here.

Provenance

The following attestation bundles were made for panproto_grammars_functional-0.49.5-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