devel/py-spark-parser 1.9.0 FreeBSD
Earley-Algorithm Context-free grammar Parser Toolkit
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, python
- Package size
- 107.9 KiB, 552.4 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-spark-parser | 1.9.0 |
| OpenBSD | devel/py-spark-parser | 1.9.0p0 |
| DragonFly | devel/py-spark-parser | 1.9.0 |
Install
Binary package:
pkg install py312-spark-parser
From the ports tree:
cd /usr/ports/devel/py-spark-parser/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-spark-parser>0:devel/py-spark-parser
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.9.0 | 1.9.0 | - | 1.9.0 | 1.9.0 |
| FreeBSD:14:quarterly | 1.9.0 | 1.9.0 | n/a | 1.9.0 | 1.9.0 |
| FreeBSD:15:latest | 1.9.0 | 1.9.0 | n/a | 1.9.0 | 1.9.0 |
| FreeBSD:15:quarterly | 1.9.0 | 1.9.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.9.0 | 1.9.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=61.2: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 1
${PYTHON_PKGNAMEPREFIX}click>=0: devel/py-click
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 8
Required by 1
Configuration
No options to configure.
- USES
- python shebangfix
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| spark_parser-1.9.0.tar.gz | 80108 | dc66d48c4265c4133db41a9c5fe9c1c502b3b20167df158a0f234cd31712cf64 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.