Skip to content
Yet Another Python Parser System
Python TeX GAP Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test Initial version in git
.travis.yml Also test with pypy
LICENSE Initial version in git
NOTES Initial version in git README: minor correction Change version to 2.2.0 (semantic versioning)
yapps2 Mostly packaging changes

YAPPS: Yet Another Python Parser System

For the most complete and excellent documentation (e.g. manual with examples) and info, please see original project website:

YAPPS is an easy to use parser generator that is written in Python and generates Python code. There are several parser generator systems already available for Python, but this parser has different goals: Yapps is simple, very easy to use, and produces human-readable parsers.

It is not the fastest or most powerful parser. Yapps is designed to be used when regular expressions are not enough and other parser systems are too much: situations where you might otherwise write your own recursive descent parser.

This fork contains several upward-compatible enhancements to the original YAPPS source, originally included in debian package:

  • Handle stacked input ("include files").
  • Augmented ignore-able patterns (can parse multi-line C comments correctly).
  • Better error reporting.
  • Read input incrementally.


It's a regular package for Python 2.7 (not 3.X, but there are links to 3.X patches listed on the original author website), but not in pypi, so can be installed from a checkout with something like that:

% python install

Better way would be to use pip to install all the necessary dependencies as well:

% pip install 'git+'

Note that to install stuff in system-wide PATH and site-packages, elevated privileges are often required. Use "install --user", ~/.pydistutils.cfg or virtualenv to do unprivileged installs into custom paths.

Alternatively, ./yapps2 can be run right from the checkout tree, without any installation.

No extra package dependencies.

Something went wrong with that request. Please try again.