Skip to main content

buildstatus Supported Python Versions

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.

See Also

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.8.0.tar.gz (107.7 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.8.0-py3.6.egg (33.8 kB view details)

Uploaded Egg

spark_parser-1.8.0-py3.4.egg (34.6 kB view details)

Uploaded Egg

spark_parser-1.8.0-py3.3.egg (35.1 kB view details)

Uploaded Egg

spark_parser-1.8.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

spark_parser-1.8.0-py2.6.egg (34.0 kB view details)

Uploaded Egg

spark_parser-1.8.0-py2.5.egg (34.0 kB view details)

Uploaded Egg

spark_parser-1.8.0-py2.4.egg (34.6 kB view details)

Uploaded Egg

spark_parser-1.8.0-py2-none-any.whl (18.0 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for spark_parser-1.8.0.tar.gz
Algorithm Hash digest
SHA256 ad82d0706d56217164ae18d5515ff084772b910bcb1edd0e34a1800b775e238e
MD5 96f8b09b65c8fd7cff74522acc3f734c
BLAKE2b-256 3d57e8ae93beb967abcd498df1e416809e6ef1dc2aa2b74d4c8a3f3599c835ee

See more details on using hashes here.

File details

Details for the file spark_parser-1.8.0-py3.6.egg.

File metadata

File hashes

Hashes for spark_parser-1.8.0-py3.6.egg
Algorithm Hash digest
SHA256 16a77b1bfbb713aec8237acc8f33cc6ccfe9460562a5f3c81f1f96cfe14af167
MD5 009285cf43ed37a35c47f934ecc8c120
BLAKE2b-256 657eaa4f968ffac6ed6339beb51d3a623765aa70c9a7baed8d525d9044191697

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.0-py3.4.egg
Algorithm Hash digest
SHA256 7ac59ba4132e8d5c91eeada6569c7270932ed99d9c998bb3e3d09ecc63314599
MD5 d05610022aabc25d9377f9beb19a8d03
BLAKE2b-256 e68be1e62b94457b8603b16b87b6271f6ed9a595fd0043a014bb3767897cfe6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.0-py3.3.egg
Algorithm Hash digest
SHA256 3b8738888e564e19ec6ab9c8895b98a587953f45435efddf00572e90c811cce5
MD5 098d3577af00ef0212f4c8f4d52f7cb9
BLAKE2b-256 1d91f27628bf3077b588492d158db7d819e23c08b9e7599564ad9a5bebae209f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ff9c1edd558b02ef4418ae3f816fbf5c9d2c3304b6e2f826c289ea15d52c56e
MD5 5276ae3d6f4bc4847f11a849a550ea21
BLAKE2b-256 97fd4be88ab7a016f0fa01b177751cc868a0ecf2e67554dfcbd632bd3c87ed9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.0-py2.6.egg
Algorithm Hash digest
SHA256 0c35cc5e8364a1da6e021148c5254aa31d06562a3612f970e244cbe023f35bdc
MD5 98dad055881162b411d736bd9f553cba
BLAKE2b-256 20ce1e99f25a3307eacee299c368cd7a2e9044f2707e28daa5ab97c94a63fdaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.0-py2.5.egg
Algorithm Hash digest
SHA256 9278287f6f065c95afcddd3121110edc5d38b19bff6bb2936a71c6aeb1f15720
MD5 f57ece9ed0b44aa21f0e8cb538f29a57
BLAKE2b-256 d48d28b5447c5ff879d491d03e08a91ff9a3d1da33acfd848ff7f656bc22b0c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.0-py2.4.egg
Algorithm Hash digest
SHA256 92e9d0309bd0729b2480653985b95b63976c4b09e83f0ef4cfc2cf459a320593
MD5 e0eb79cd822923485e4cfcfe972345fe
BLAKE2b-256 43f9e78f6083aa64e071d07a44967c96d9fb1b90b6a5ad6af894d9abf07b306b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.0-py2-none-any.whl
Algorithm Hash digest
SHA256 9777b5e6445d1dda8971c88c75ac5c6abddf629c3ed3480f3235f32c85bf00ec
MD5 6514bc84949493e833b672e71953ffc9
BLAKE2b-256 36f81b9ae6e8a6c613e117b97697d161713ec2bd6df889dec4d79391c1475289

See more details on using hashes here.

Release history Release notifications | RSS feed

1.9.0

6 files

1.8.9

7 files

1.8.8

3 files

1.8.7

9 files

1.8.6

10 files

1.8.5

12 files

1.8.4

9 files

1.8.3

9 files

1.8.2

9 files

1.8.1

9 files

This release

1.8.0 This release

9 files

1.7.2

9 files

1.7.1

10 files

1.7.0

10 files

1.6.1

9 files

1.6.0

11 files

1.5.2

11 files

1.5.1

11 files

1.5.0

11 files

1.4.3

12 files

1.4.2

10 files

1.4.0

5 files

1.3.0

6 files

1.2.1

6 files

1.1.1

6 files

1.1.0

6 files

1.0.2

6 files

1.0.1

6 files

1.0.0

5 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