Skip to main content

Plyplus is a general-purpose parser built on top of PLY (http://www.dabeaz.com/ply/), written in python, with a slightly different approach to parsing.

Most parsers work by calling a function for each rule they identify, which processes the data and returns to the parser. Plyplus parses the entire file into a parse-tree, letting you search and process it using visitors and pattern-matching.

Plyplus makes two uncommon separations: of code from grammar, and of processing from parsing. The result of this approach is (hopefully) a cleaner design, more powerful grammar processing, and a parser which is easier to write and to understand.

Features:

  • Automatically builds an AST. Customizable in grammar (expand and flatten nodes automatically)

  • Selectors: run powerful queries on the AST

  • Rule operators mimicking regular expressions (supported: parentheses, ‘|’, ‘*’, ‘?’, and ‘+’)

  • Comes with a full, flexible, Python grammar

  • Nested grammars (a grammar within a grammar. Useful for HTML/CSS, for example)

  • Automatic line counting

  • From PLY: Readable errors, Debug mode

  • And more! …

Metadata

Release files for PlyPlus 0.7.5

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

Source distribution (sdist)

Source distribution for PlyPlus 0.7.5
File Size Uploaded
PlyPlus-0.7.5.tar.gz 233.2 kB Details

Release files / PlyPlus-0.7.5.tar.gz

Download URL PlyPlus-0.7.5.tar.gz
Size 233.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d75ea80cd0ac6ce8e8fe433310326efd15c5f8aa18fcb45113ebca51dda36e3c
BLAKE2b-256 checksum
How to use checksums
2fe282efb358adef63ae282022ac43638b8b9905eb0014d618b738a7ecd82c0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.7.5 This release

1 release file

0.7.4

1 release file

0.7.3

1 release file

0.7.2

1 release file

0.6.2

2 release files

0.6.1

1 release file

0.6.0

1 release file

0.5.6

1 release file

0.5.4

1 release file

0.5.2

1 release file

0.4.5

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.2.1

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

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