Skip to main content

An Early-Algorithm Context-free grammar Parser

Project description

buildstatus

SPARK

SPARK stands for Scanning, Parsing, and Rewriting Kit. It uses Jay Early’s algorithm for LR parsing 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 and was described in his 1988 paper: “Compiling Little Languages in Python” at the 7th International Python Conference.

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 example; Package uncompyle6 uses this and contains a much larger example.

See Also

Project details


Download files

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

Source Distribution

spark_parser-1.1.1.tar.gz (14.0 kB view hashes)

Uploaded Source

Built Distributions

spark_parser-1.1.1-py3.5.egg (46.2 kB view hashes)

Uploaded Source

spark_parser-1.1.1-py3.4.egg (46.5 kB view hashes)

Uploaded Source

spark_parser-1.1.1-py3-none-any.whl (21.7 kB view hashes)

Uploaded Python 3

spark_parser-1.1.1-py2.7.egg (45.3 kB view hashes)

Uploaded Source

spark_parser-1.1.1-py2.6.egg (45.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page