Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

An Earley-Algorithm Context-free grammar Parser Toolkit

Project Description

SPARK - An Earley Algorithm Parser toolkit.

SPARK stands for Scanning, Parsing, and Rewriting Kit. It uses Jay Earley’s algorithm for parsing context free grammars, and comes with some generic Abstract Syntax Tree routines. There is also a prototype scanner which does its job by combining Python regular expressions.

The original version of this was written by John Aycock for his Ph.d thesis and was described in his 1998 paper: “Compiling Little Languages in Python” at the 7th International Python Conference. The current incarnation of this code is maintained (or not) by Rocky Bernstein.

Note: Earley algorithm parsers are almost linear when given an LR grammar. These are grammars which are left-recursive.

Installation

This uses setup.py, so it follows the standard Python routine:

python setup.py install # may need sudo
# or if you have pyenv:
python setup.py develop

Example

The github example directory has a worked-out examples; Package uncompyle6 uses this and contains a much larger example.

Release History

Release History

This version
History Node

1.7.0

History Node

1.6.1

History Node

1.6.0

History Node

1.5.2

History Node

1.5.1

History Node

1.5.0

History Node

1.4.3

History Node

1.4.2

History Node

1.4.0

History Node

1.3.0

History Node

1.2.1

History Node

1.1.1

History Node

1.1.0

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
spark_parser-1.7.0-py2.4.egg (34.4 kB) Copy SHA256 Checksum SHA256 2.4 Egg Oct 10, 2017
spark_parser-1.7.0-py2.5.egg (33.8 kB) Copy SHA256 Checksum SHA256 2.5 Egg Oct 10, 2017
spark_parser-1.7.0-py2.6.egg (33.7 kB) Copy SHA256 Checksum SHA256 2.6 Egg Oct 10, 2017
spark_parser-1.7.0-py2.7.egg (33.5 kB) Copy SHA256 Checksum SHA256 2.7 Egg Oct 10, 2017
spark_parser-1.7.0-py3.3.egg (34.8 kB) Copy SHA256 Checksum SHA256 3.3 Egg Oct 10, 2017
spark_parser-1.7.0-py3.4.egg (34.4 kB) Copy SHA256 Checksum SHA256 3.4 Egg Oct 10, 2017
spark_parser-1.7.0-py3.5.egg (34.2 kB) Copy SHA256 Checksum SHA256 3.5 Egg Oct 10, 2017
spark_parser-1.7.0-py3.6.egg (33.6 kB) Copy SHA256 Checksum SHA256 3.6 Egg Oct 10, 2017
spark_parser-1.7.0-py3-none-any.whl (17.6 kB) Copy SHA256 Checksum SHA256 py3 Wheel Oct 10, 2017
spark_parser-1.7.0.tar.gz (187.8 kB) Copy SHA256 Checksum SHA256 Source Oct 10, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting