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.4.tar.gz (130.9 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.4-py3.6.egg (34.5 kB view details)

Uploaded Egg

spark_parser-1.8.4-py3.4.egg (35.3 kB view details)

Uploaded Egg

spark_parser-1.8.4-py3.3.egg (35.7 kB view details)

Uploaded Egg

spark_parser-1.8.4-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

spark_parser-1.8.4-py2.6.egg (34.6 kB view details)

Uploaded Egg

spark_parser-1.8.4-py2.5.egg (34.7 kB view details)

Uploaded Egg

spark_parser-1.8.4-py2.4.egg (35.3 kB view details)

Uploaded Egg

spark_parser-1.8.4-py2-none-any.whl (18.3 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for spark_parser-1.8.4.tar.gz
Algorithm Hash digest
SHA256 97fda0e715df8a8ff25447b6e77a4873d991706170af1a43c7715815446319d4
MD5 5fb14a4b41bb2578dedaba4a0ecb1c3e
BLAKE2b-256 d983bad0143b3eaa476b573779861989a1616b673f2e06563ad9f383c0a4dc6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.4-py3.6.egg
Algorithm Hash digest
SHA256 c34faa1ded95a40594cbeb0e4ffd272245f6f8560a3b4976fa8961e52b4563ea
MD5 6bfeb6fd1e5cfc0d4119da174f369721
BLAKE2b-256 cd55d276a30a0256e26af6c40a172cbca4ba3291ebd24d2bfbf934bc4f9b602a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.4-py3.4.egg
Algorithm Hash digest
SHA256 0fc0dc0cb3e8d17505438eabc2cead6f6cf569893b5078e0f429a8541b1fef5f
MD5 48f8218aa7271dd679bc07a6a1b8e2e5
BLAKE2b-256 b9f17b12d11f000fbf3506c39ab24298d6c84a1d8a19716790c1526218e543b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.4-py3.3.egg
Algorithm Hash digest
SHA256 7036360c18dcbf12af4d1e1c04d7ed97ad83ca82a6df3c26a3f46bafb5316149
MD5 a55f7ad903d05896f7423551be326299
BLAKE2b-256 1669951991785f5e85373183b9b85450448d59a344901b1d084108ff464f229d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 68d66f997e0205ed458d2fbb794f9422a2af0966cf3e4d9e6523b771150921a6
MD5 90183b939bf9db3d34f206d99f2780f5
BLAKE2b-256 b93b3ceb659179e438dd17c5fe64ceef476e160e91592d191d4d49af931713d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.4-py2.6.egg
Algorithm Hash digest
SHA256 f8072f527c5b580eb52e576aedfba70cd8399f264d961938cde3eac33c060dc0
MD5 6cc7e8debb2bdb889a76a9486779e906
BLAKE2b-256 9086d812ebc7030218fc6cc91c726d84262bd58c942bd8e4969d1987d780c52a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.4-py2.5.egg
Algorithm Hash digest
SHA256 19ad8e89e19630aa5c4915d740b1cdb8e99deef0b9b3e58036027e9d37de13d5
MD5 bd3636495a76b9d8ff7c8ccbb59098cb
BLAKE2b-256 6b5956c73a05a474086e60980552c0c352eda90cec24450eceeeae4036715cd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.4-py2.4.egg
Algorithm Hash digest
SHA256 55cb41fc5848f9e6239a94f329d4ea37751a74f8ae4d7a74fd07117867030a96
MD5 6cef748a1e1a28576a6f57fadbb4b4f3
BLAKE2b-256 216df4367ccf91d1e1062c0c3d4fd85e71e35af3c1510fb7a0863df31d1a72ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_parser-1.8.4-py2-none-any.whl
Algorithm Hash digest
SHA256 bd0675083a99994c21618f5ce55c7ebf2dffcd6941d4a9abaf72cd08463473d0
MD5 e86769b8364fccb8bb176ecf4cc6257a
BLAKE2b-256 ee4522d4a593bf17ac60c72ea17a076b23126b70aac7a3aa716bb32f7bed510c

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

This release

1.8.4 This release

9 files

1.8.3

9 files

1.8.2

9 files

1.8.1

9 files

1.8.0

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