Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
PLY (software)
Parsing tool written purely in Python

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.

We don't have any images related to PLY (software) yet.
We don't have any YouTube videos related to PLY (software) yet.
We don't have any PDF documents related to PLY (software) yet.
We don't have any Books related to PLY (software) yet.
We don't have any archived web articles related to PLY (software) yet.

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 the PLY module

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

References

  1. "PLY Homepage". http://www.dabeaz.com/ply/

  2. "Official Documentation". http://www.dabeaz.com/ply/ply.html#ply_nn2