Skip to main content

Lrparsing provides both an LR(1) parser and a tokeniser. It differs from other Python LR(1) parsers in using Python expressions as grammars, and offering simple to use disambiguation tools.

The result is something that is powerful yet concise. For simple tasks this means it can be thought of as an extension to Python’s existing re module, used when regular expressions become too cumbersome. For complex tasks offers a high speed parser (very roughly 25us per token from string to parse tree on a desktop CPU), pre-compilation of the grammar and error recovery hooks so parsing can continue after an error is found.

In addition to extensive documentation it comes with a parser for Sqlite3 data manipulation statements and a Lua 5.2 to Python compiler as examples. The documentation can be read online at http://www.stuart.id.au/russell/files/lrparsing/doc.

Metadata

Release files for lrparsing 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lrparsing 1.0.1
File Size Uploaded Provenance Actions
lrparsing-1.0.1.tar.gz 310.9 kB Without provenance Details for lrparsing-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lrparsing 1.0.1
File Interpreter ABI Platform Actions
lrparsing-1.0.1.linux-x86_64.tar.gz Details for lrparsing-1.0.1.linux-x86_64.tar.gz

Total release size: 367.2 kB

Release files / lrparsing-1.0.1.tar.gz

Download URL lrparsing-1.0.1.tar.gz
Size 310.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8f083d6e38e99e01ca98b72b9c8cca19f243b37a5466343b497dff7375c8cc1e
BLAKE2b-256 checksum
How to use checksums
fd2657037962c6a1b3c63e7415c5bf0e06e87a9c42b28e38ca07907e92126525
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / lrparsing-1.0.1.linux-x86_64.tar.gz

Download URL lrparsing-1.0.1.linux-x86_64.tar.gz
Size 56.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8d5030cd30b228482b6d5cefa528ad550f7e08e3e53a9d22e502d6efabf73fa7
BLAKE2b-256 checksum
How to use checksums
916fc5644d5897b5c32ca7299bbc123ff577ae9377d61893586a32beb405ef0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for lrparsing 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page