lang/py-sly 0.5 DragonFly
Python implementation of the lex & yacc tools
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- lang, python
- Package size
- 59.5 KiB, 312.4 KiB installed
Description
SLY is a 100%25 Python implementation of the lex and yacc tools commonly used to write parsers and compilers. Parsing is based on the same LALR(1) algorithm used by many yacc tools.
SLY provides very extensive error reporting and diagnostic information to assist in parser construction. The original implementation was developed for instructional purposes. As a result, the system tries to identify the most common types of errors made by novice users.
SLY provides full support for empty productions, error recovery, precedence specifiers, and moderately ambiguous grammars.
SLY uses various Python metaprogramming features to specify lexers and parsers. There are no generated files or extra steps involved.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | lang/py-sly | 0.5 |
| FreeBSD | lang/py-sly | 0.5 |
| HardenedBSD | lang/py-sly | 0.5 |
| GhostBSD | lang/py-sly | 0.5 |
Install
Binary package:
pkg install py311-sly
From DPorts:
cd /usr/dports/lang/py-sly && make install clean
Dependencies
Run dependencies 1
No port depends on this one.