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 offers 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 lrparsing 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://lrparsing.sourceforge.net/doc/html/.

Release files for lrparsing 1.0.13

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.13
File Size Uploaded
lrparsing-1.0.13.tar.gz 380.9 kB Details

Release files / lrparsing-1.0.13.tar.gz

Download URL lrparsing-1.0.13.tar.gz
Size 380.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b9f8c9ab886b4a74ac0e2ffe8619d1b6fa11c8808f1a0ac661cf1765de4483c2
BLAKE2b-256 checksum
How to use checksums
e870a588cc2f662899e577331d38ce835656668d41d1539866f1ffe374e6d0e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.13 This release

1 release file

1.0.12

1 release file

1.0.11

1 release file

1.0.10

1 release file

1.0.7

1 release file

1.0.5

1 release file

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

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