Skip to main content

An Early-Algorithm Context-free grammar Parser

Project description

buildstatus Supported Python Versions

SPARK

SPARK stands for Scanning, Parsing, and Rewriting Kit. It uses Jay Early’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 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: Early 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.

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.5.0.tar.gz (104.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

spark_parser-1.5.0-py3.5.egg (29.8 kB view details)

Uploaded Egg

spark_parser-1.5.0-py3.4.egg (30.0 kB view details)

Uploaded Egg

spark_parser-1.5.0-py3.3.egg (30.4 kB view details)

Uploaded Egg

spark_parser-1.5.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

spark_parser-1.5.0-py2.7.egg (29.2 kB view details)

Uploaded Egg

spark_parser-1.5.0-py2.6.egg (29.4 kB view details)

Uploaded Egg

spark_parser-1.5.0-py2.5.egg (29.3 kB view details)

Uploaded Egg

spark_parser-1.5.0-py2.4.egg (29.9 kB view details)

Uploaded Egg

spark_parser-1.5.0-py2.3.egg (92.7 kB view details)

Uploaded Egg

spark_parser-1.5.0-py2-none-any.whl (15.4 kB view details)

Uploaded Python 2

File details

Details for the file spark_parser-1.5.0.tar.gz.

File metadata

  • Download URL: spark_parser-1.5.0.tar.gz
  • Upload date:
  • Size: 104.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for spark_parser-1.5.0.tar.gz
Algorithm Hash digest
SHA256 6e347db25c255db8093b2dba385359d68d26cfa7465673de7f45dfbc72bdf933
MD5 0d4165edc51496e048fcc003a781fbf8
BLAKE2b-256 312143582d8cae2667319c2d4160f451d61609a961e398b260b9c17a49f78813

See more details on using hashes here.

File details

Details for the file spark_parser-1.5.0-py3.5.egg.

File metadata

File hashes

Hashes for spark_parser-1.5.0-py3.5.egg
Algorithm Hash digest
SHA256 2baacb6de80de8f3266001bb2fc5db49441ace31cfab848043ee158fb10cebe5
MD5 002c62f8ebc4a1a74859d750679d6bdd
BLAKE2b-256 e8f9f696ed6feafeac9ce6e21666dc5f7fb86e514b4a108e33e9cbb9c5df5045

See more details on using hashes here.

File details

Details for the file spark_parser-1.5.0-py3.4.egg.

File metadata

File hashes

Hashes for spark_parser-1.5.0-py3.4.egg
Algorithm Hash digest
SHA256 2c64efab1a6f5df731e6cc90e40c8e7cee88c4e96c4096c3b6983fded721ca66
MD5 1aae54b534d5ab23cd7e00b1a8eafe36
BLAKE2b-256 b5ad0577c1aea9e7fbb7c6ebf1fbd48ad02d775fadd96f490250d88739ed360c

See more details on using hashes here.

File details

Details for the file spark_parser-1.5.0-py3.3.egg.

File metadata

File hashes

Hashes for spark_parser-1.5.0-py3.3.egg
Algorithm Hash digest
SHA256 4a8c6db958f1bf5ffeb1154dbe5d015dc42da6a74f0788ade6cc804396ac22d6
MD5 7a12c8b4dcecfbc00b6e2168f782694d
BLAKE2b-256 1df0d5ea2ddef4310553869129928d67e16bdaa74d79483e03dfb8654588b229

See more details on using hashes here.

File details

Details for the file spark_parser-1.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spark_parser-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8f190aa2298e74ad972b168ca9f433cd803ed07a253be3f4176fe21af7c3577
MD5 9eb8eb81e7e9747e48762111e5093500
BLAKE2b-256 38e3bd7614a67929a3e87e412ec05ebd0239b1d6dd0bb45a6a6321a4ba01f2af

See more details on using hashes here.

File details

Details for the file spark_parser-1.5.0-py2.7.egg.

File metadata

File hashes

Hashes for spark_parser-1.5.0-py2.7.egg
Algorithm Hash digest
SHA256 ea00edc2535a3ee536541830eaad55ad7d6619425010e8b4c23b4ae2077c26f4
MD5 6285b37bb22037bd7eaffb3898604d3d
BLAKE2b-256 f5c9349be5e03f4368479fdabd542971f7aef804ee2c9abdaf8a6cb52b3eb1ed

See more details on using hashes here.

File details

Details for the file spark_parser-1.5.0-py2.6.egg.

File metadata

File hashes

Hashes for spark_parser-1.5.0-py2.6.egg
Algorithm Hash digest
SHA256 57268fd9e621ffeca3fdf9ae4fb8d30b3bd9054c1644e10ca404a2106c688275
MD5 e32b8c5157434174e9382a23aaac3128
BLAKE2b-256 f3bb0c2d643e2d3c86cb59119b2411d92f572b93f69ba89a1cd3fb86ed0d5e30

See more details on using hashes here.

File details

Details for the file spark_parser-1.5.0-py2.5.egg.

File metadata

File hashes

Hashes for spark_parser-1.5.0-py2.5.egg
Algorithm Hash digest
SHA256 aba3f574e5d33d1d92b81685a0b74c4132e63f2251d8f161234d7f2cab2c93d3
MD5 41497bcef6be6a3ef5fce9bd53d06a75
BLAKE2b-256 6fb6853e310c910671e1b84d70146072986f5db42fa879520cd287cf67e4e54d

See more details on using hashes here.

File details

Details for the file spark_parser-1.5.0-py2.4.egg.

File metadata

File hashes

Hashes for spark_parser-1.5.0-py2.4.egg
Algorithm Hash digest
SHA256 98e8ed3d28087b9b8271d1ac7bade129bc8c8c7cc69eba00208c881d68e3f883
MD5 15769956e7aca4c781642cd8fe982057
BLAKE2b-256 626db8089f390fddff47fc5893a901c9020095816776c51c8801143a551a59f5

See more details on using hashes here.

File details

Details for the file spark_parser-1.5.0-py2.3.egg.

File metadata

File hashes

Hashes for spark_parser-1.5.0-py2.3.egg
Algorithm Hash digest
SHA256 ae8640535a8fedb6f4b45182317281cbc3c1f25bf27a70ae6c1c2209880b0aaa
MD5 877e14ce50ea93409486e87f741b98e6
BLAKE2b-256 e4d92558c633b77e1774ee44b612cb8bc96fd84208e2aa20ad707134b0cf66a1

See more details on using hashes here.

File details

Details for the file spark_parser-1.5.0-py2-none-any.whl.

File metadata

File hashes

Hashes for spark_parser-1.5.0-py2-none-any.whl
Algorithm Hash digest
SHA256 318514c12b30eae46895faae783fc2672a8dbb74bfafb2037bf135882cff2fda
MD5 a031e7d1bc67f6689f1d68f60f0d2739
BLAKE2b-256 377a59199d71d907425f62ac2aecd36f30de7cf8157cb3f4b1aff5ff0bd0809d

See more details on using hashes here.

Supported by

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