PLY (Python Lex-Yacc)
PLY is a parsing tool written purely in Python. It is, in essence, a re-implementation of Lex and Yacc originally in C-language. It was written by David M. Beazley. PLY uses the same LALR parsing technique as Lex and Yacc. It also has extensive debugging and error reporting facilities.[1]
Original author(s) | David M. Beazley |
---|---|
Stable release | 3.11
|
Repository | |
Written in | Python |
Website | dabeaz |
Features
Implemented in Python, it has almost all the features provided by Lex and Yacc. It includes support for empty productions, precedence rules, error recovery, and ambiguous grammars. It supports Python 3.
Structure of a PLY file
PLY has the following two Python modules which are part of the ply package.[2]
- ply.lex - A re-implementation of Lex for lexical analysis
- ply.yacc - A re-implementation of Yacc for parser creation
gollark: UV damages DNA and such, heat directly... breaks proteins and stuff I guess.
gollark: I don't think so, pretty sure it's just because the affected area is, you know, hot.
gollark: As far as I know it's due to ultraviolet from the sun, not (just?) heat.
gollark: I use Firefox, it even supports some addons.
gollark: It is better to make your actual site efficient and build in mobile support than redesign a new version with Google's proprietary technology. Except they boost AMP pages in search results on phones because why NOT be wildly anticompetitive?
References
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.