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
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/py-ply | 3.11p9 |
| FreeBSD | devel/py-ply | 3.11_1 |
| NetBSD | devel/py-ply | 3.11nb2 |
| DragonFly | devel/py-ply | 3.11_1 |
| MidnightBSD | devel/py-ply | 3.11_1 |
| HardenedBSD | devel/py-ply | 3.11_1 |
| GhostBSD | devel/py-ply | 3.11_1 |
| OPNsense | devel/py-ply | 3.11_1 |
Install
Binary package:
pkg_add py3-ply
From the ports tree:
cd /usr/ports/devel/py-ply && make install