FreeBSD.software
Home/lang/py311-sly

py311-sly

0.5lang

Python implementation of the lex & yacc tools

SLY is a 100% 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.

$pkg install py311-sly
pypi.org/project/sly
Origin
lang/py-sly
Size
312KiB
License
MIT
Maintainer
awoonyaa@gmail.com
Dependencies
1 packages
Required by
1 packages

Dependencies (1)

Required By (1)