BSD Ports

devel/py-ply 3.11p9 OpenBSD

Python lex/yacc

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, lang/python

Description

PLY is an implementation of the lex and yacc parsing tools written entirely in Python. It uses LR-parsing which is reasonably efficient and well suited for larger grammars.

PLY provides most of the standard lex/yacc features including support for empty productions, precedence rules, error recovery, and support for ambiguous grammars.

It's been abandoned upstream and not expected to be maintained any more.

Note: do *not* use the undocumented 'picklefile' parameter with untrusted or externally writable files - Python's pickle module permits execution of embedded code during deserialization, so a malicious pickle file can execute arbitrary code during parser setup.

In the other systems

SystemPortVersion
OpenBSDdevel/py-ply3.11p9
FreeBSDdevel/py-ply3.11_1
NetBSDdevel/py-ply3.11nb2
DragonFlydevel/py-ply3.11_1
MidnightBSDdevel/py-ply3.11_1
HardenedBSDdevel/py-ply3.11_1
GhostBSDdevel/py-ply3.11_1
OPNsensedevel/py-ply3.11_1

Install

Binary package:

pkg_add py3-ply

From the ports tree:

cd /usr/ports/devel/py-ply && make install

Dependencies

Build dependencies 5
Run dependencies 1