ports/devel/py-spark-parser/pkg-descr
Po-Chuan Hsieh 4bf4bfecb8
devel/py-spark-parser: Add py-spark-parser 1.8.9
This package 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.

(SPARK stands for Scanning, Parsing, and Rewriting Kit. It is a poor name since
it conflicts with a more popular package of the same name. In the future we will
rename this.)

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.
2024-08-05 01:13:51 +08:00

15 lines
803 B
Text

This package 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.
(SPARK stands for Scanning, Parsing, and Rewriting Kit. It is a poor name since
it conflicts with a more popular package of the same name. In the future we will
rename this.)
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.