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

Uploaded CPython 3.13+Windows x86-64

panproto_grammars_functional-0.53.0-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.53.0-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.53.0-cp313-abi3-macosx_11_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13+macOS 11.0+ ARM64

panproto_grammars_functional-0.53.0-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.53.0-cp313-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for panproto_grammars_functional-0.53.0-cp313-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f0c6f74b9029e12821898fd5b94b2a52385c0959a3a5f67a9f33222b92bb48ae
MD5 f12af66884762ac6de7c23300305a9e1
BLAKE2b-256 d7c8a054e9e2f464d3c563b850cd80eee22dd32edb1472b1ed01999ffdf4499d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.53.0-cp313-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 429a5d86174e02071f7718a33b9e2330bbacf81dbd6279c981f157a8066c0144
MD5 c9756059649f5b0f41fc61dc59f2f524
BLAKE2b-256 42ae1f112ab2c6dc7ca68db347b561b6919036c576950e6ba4f94d3c263b4621

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.53.0-cp313-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0765890e34bc752eb793ac97acec0e2fbe87b9f3c09b4f6f156896564bbb1d27
MD5 d4094a91304be48997a617cdc13cd246
BLAKE2b-256 c672b4123d46bb671698e420fcb3998615e5b96994c25adf4bfd22725ff79866

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.53.0-cp313-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e326fadb6307ffd1287f7711f0f7c052680515709e5d8e644f5a2ddc2bcd12d
MD5 44abcf13ccf046430b0c824cfd036030
BLAKE2b-256 a7e4f267f7dc02e3b6251b71d0e0529eebd2da43bfcda4f45529985b2409da5e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for panproto_grammars_functional-0.53.0-cp313-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b688c41518c5cd533959d28e16fb1fbc645c880239da113ce70b6df2ffbbf529
MD5 629369ad516df9e732058c77bf84b8ce
BLAKE2b-256 a6771520bf79790baf771cbfaba59f45225ee8abc14f8fc161fdcae1a2d2cb86

See more details on using hashes here.

Provenance

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