An Earley-Algorithm Context-free grammar Parser Toolkit
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.
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
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|spark_parser-1.7.2-py2.4.egg (34.1 kB) Copy SHA256 hash SHA256||Egg||2.4||Nov 15, 2017|
|spark_parser-1.7.2-py2.5.egg (33.5 kB) Copy SHA256 hash SHA256||Egg||2.5||Nov 15, 2017|
|spark_parser-1.7.2-py2.6.egg (33.5 kB) Copy SHA256 hash SHA256||Egg||2.6||Nov 15, 2017|
|spark_parser-1.7.2-py2-none-any.whl (17.7 kB) Copy SHA256 hash SHA256||Wheel||py2||Nov 15, 2017|
|spark_parser-1.7.2-py3.3.egg (34.5 kB) Copy SHA256 hash SHA256||Egg||3.3||Nov 15, 2017|
|spark_parser-1.7.2-py3.4.egg (34.1 kB) Copy SHA256 hash SHA256||Egg||3.4||Nov 15, 2017|
|spark_parser-1.7.2-py3.6.egg (33.3 kB) Copy SHA256 hash SHA256||Egg||3.6||Nov 15, 2017|
|spark_parser-1.7.2-py3-none-any.whl (17.7 kB) Copy SHA256 hash SHA256||Wheel||py3||Nov 15, 2017|
|spark_parser-1.7.2.tar.gz (107.0 kB) Copy SHA256 hash SHA256||Source||None||Nov 15, 2017|