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

Uploaded CPython 3.13+Windows x86-64

panproto_grammars_functional-0.50.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.50.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.50.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.50.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.50.4-cp313-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.50.4-cp313-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a273d61aba7e3184de236136ee66103c086e942ca59dbb5143a3f3b626b18a95
MD5 e8438f162fc6fa365662d8309026d7ca
BLAKE2b-256 20b2a9ee3d789a060d0554fb87f390eeca99bb4750f8bd026d39d831f2f7de9a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.50.4-cp313-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 af2ad724f23ce301522d2735e0a0d35fb3d13098c7db5710f322e454901ac424
MD5 18c1e9580daf3ff254c4fcf6aff96865
BLAKE2b-256 bf5e599750d3d038e997187423d4dec4df57a1f52ee6a99e68336143678b159c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.50.4-cp313-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 76c08396ad9de972b29d09957422f8730fd521a8208c1d5e316ea0754d13f965
MD5 c310272468628bf2607577e68d57d514
BLAKE2b-256 f3bc9ac5026182cd9add00109d51eea355235cac2adfc369a10fd9e54e0f70a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.50.4-cp313-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8fe85d918574aa55b26b07cbdfad763a560755899c1b28447e59a4a48e4d9f2
MD5 cd852bb57d1407e6728fbe7a28325cc0
BLAKE2b-256 718fde46d1944049214d6cda87343a8601899c65da8bc82cfd542a02905480ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.50.4-cp313-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d011895331ffc424a897835c39745680b5afc22d10f79d49aa38cd0dc9e012f5
MD5 4e9af26cdc3022a869684205fd9353f4
BLAKE2b-256 ea3ae5b6b41fa024016fd9149edbebf4573f5723896a8fb3ef3c1728d1e0f734

See more details on using hashes here.

Provenance

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