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

Uploaded CPython 3.13+Windows x86-64

panproto_grammars_functional-0.48.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.48.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.48.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.48.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.48.5-cp313-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.48.5-cp313-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 245c41c7155f18705d821601cde17cb92affa38571ea402dd511618172084430
MD5 718af9b73c77413a5dba50a815fbf6cc
BLAKE2b-256 c6890331542aefe884d13cf76d27648c2f88df810e6b233d7aca3f8e1f010ee2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.48.5-cp313-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d42f3e74257a1b1969adfccfdcb39e059b56011a0185d35a583a7244ba7e7be1
MD5 25bd3daf2758259e7a831111cd05710f
BLAKE2b-256 fe553488cb8baf0975d2d2f4f3d838bd9814381e088dbfcdb628cd247dbe0c99

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.48.5-cp313-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d5f67241535c466202ae30f7e1860d3001906af4af481de405ab37e7c98fde61
MD5 0e22be77e60ad9b61c5544e4583e2b1d
BLAKE2b-256 1c1bcd8efa812b1f8eb8afea111418bed4a4d72326c00714ab74dd9903766abc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.48.5-cp313-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28270556e40954b12ba2109ef5ac640fdcb0d4d954dc35b0b14c903bae9bb8f2
MD5 28cfeda309eee587ce070978a4fc9fe9
BLAKE2b-256 95ba9753dba4ab67efaabcdc6d9ba061702c6b86fcb990017b108c4402c3fec2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.48.5-cp313-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 605194496696bed58080735ae060b69c9dcf482467661aa473ea840f0a5539ff
MD5 e2486693004752da75ec131639d37bcc
BLAKE2b-256 b6dfda7542e65208a2b5c821aba78c25a99b4a17d5097173e8f0b888a75a1a2d

See more details on using hashes here.

Provenance

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