An Early-Algorithm Context-free grammar Parser
Project description
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
http://pages.cpsc.ucalgary.ca/~aycock/spark/ (Old and not very well maintained)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spark_parser-1.1.1.tar.gz.
File metadata
- Download URL: spark_parser-1.1.1.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd732af2f411a9c3717c29929ca3a5a0f253635ae904e1498e800d4207e93a72
|
|
| MD5 |
2fdfb3e8e82a79ca1d58b31c8562df1c
|
|
| BLAKE2b-256 |
ff13752712a1bf51a76eedfcfc1d6d06b48388fbe0194722b736190ccea57c3a
|
File details
Details for the file spark_parser-1.1.1-py3.5.egg.
File metadata
- Download URL: spark_parser-1.1.1-py3.5.egg
- Upload date:
- Size: 46.2 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9fddbd5fa558f0f69d1791362092a0e0224160c8703873b6986e18a992a8202
|
|
| MD5 |
008875d32b196f7c61c9567f712d5143
|
|
| BLAKE2b-256 |
4b305bceb01f6e59595fe0a123860a35dc4b47b9c76ae3bcdb235ca37706cc20
|
File details
Details for the file spark_parser-1.1.1-py3.4.egg.
File metadata
- Download URL: spark_parser-1.1.1-py3.4.egg
- Upload date:
- Size: 46.5 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f294d9a28c3c045c3e00b6f5ed350f9ce81411977464dd706f3c8be6e1658796
|
|
| MD5 |
8df6cd7a7bc3c0e1de18a48969ae2b2b
|
|
| BLAKE2b-256 |
8bf90ab8029b0481ebee5d384c73a6026f6b9e8a7f2db87bf2dcbf69712a2aba
|
File details
Details for the file spark_parser-1.1.1-py3-none-any.whl.
File metadata
- Download URL: spark_parser-1.1.1-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84a603fec0412ff124b4dd527739c6ad713a82f76e4d7d0314dd44c6b381abc8
|
|
| MD5 |
ad49c106c11221864d34048086a539c2
|
|
| BLAKE2b-256 |
705418cc1ebec8fb5ebe4d9a6aa39b2567379bc9d2501cd937abf1945b2b0002
|
File details
Details for the file spark_parser-1.1.1-py2.7.egg.
File metadata
- Download URL: spark_parser-1.1.1-py2.7.egg
- Upload date:
- Size: 45.3 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31235fa2817649ad4d41427ebae98bf26b382f73938ff812fe016b1b751191dc
|
|
| MD5 |
8efb54ed7642ecc5a5a17b38c01104cb
|
|
| BLAKE2b-256 |
995ecbe395b9961b97a2e9f56b26f1542dc949f9aa098f3788e8e049ec781ad3
|
File details
Details for the file spark_parser-1.1.1-py2.6.egg.
File metadata
- Download URL: spark_parser-1.1.1-py2.6.egg
- Upload date:
- Size: 45.5 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1170349e0b324d09d07817b1202c130292d70c9d663df8e7e751b2363dc4a76
|
|
| MD5 |
427eb649246a20a6ad2767176681d746
|
|
| BLAKE2b-256 |
e109300bbb5a5968bf974f2ae5f571f2c6bb7794fe9509948f6a7ef72946ec08
|