Jump to content

PLY (software): Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
m Add short description
Line 1: Line 1:
{{Short description|Parsing tool written purely in Python}}
{{otheruses|Ply (disambiguation)}}
{{Other uses|Ply (disambiguation)}}
{{refimprove|date=April 2014}}
{{More citations needed|date=April 2014}}
{{Infobox software
{{Infobox software
| name = PLY (Python Lex-Yacc)
| name = PLY (Python Lex-Yacc)
Line 35: Line 36:
==References==
==References==
{{Reflist}}
{{Reflist}}

{{Authority control}}


[[Category:Parser generators]]
[[Category:Parser generators]]

Revision as of 13:48, 22 March 2020

PLY (Python Lex-Yacc)
Original author(s)David M. Beazley
Stable release
3.11
Repository
Written inPython
Websitedabeaz.com/ply/

PLY is a parsing tool written purely in Python. It is basically 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. PLY also has extensive debugging and error reporting facilities.[1]

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 - This deals with the lexical analysis part.
  • ply.yacc - This module is for creating a parser.

These files contain the necessary modules.

References

  1. ^ "PLY Homepage".
  2. ^ "Official Documentation".