GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - smurfix/yapps: Yet Another Python Parser System

BranchesTags
Open more actions menu

Latest commit

 

History

64 Commits
64 Commits

Folders and files

NameName
Last commit message
Last commit date
doc
doc
 
 
examples
examples
 
 
test
test
 
 
yapps
yapps
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
ChangeLog
ChangeLog
 
 
LICENSE
LICENSE
 
 
NOTES
NOTES
 
 
README.md
README.md
 
 
setup.py
setup.py
 
 
test.sh
test.sh
 
 
yapps2
yapps2
 
 

Repository files navigation

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: http://theory.stanford.edu/~amitp/yapps/

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.

Installation

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 setup.py install

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

% pip install 'git+https://github.com/mk-fg/yapps.git#egg=yapps'

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.

About

Yet Another Python Parser System

github.com/smurfix/yapps

Resources

Readme
License
Activity
Custom properties

Stars

52 stars

Watchers

3 watching

Forks

20 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.