Skip to main content

Robinson Crusoe's parsing package.

Project description

peglet

Three goals:

  1. A parsing library that’s pleasant enough to use;

  2. that’s simple to adapt or rewrite from scratch if I’m faced with some new situation like a new programming language;

  3. that inexpert programmers can follow without too much pain.

So I aimed for one page of clear code not using combinators. Some bits that couldn’t fit those constraints (mainly #3) overflowed into a combinator library, parson.

See https://github.com/darius/sketchbook/tree/master/parsing for some early sketches.

See http://www.udacity.com/wiki/CS212%20Unit%203%20Code?course=cs212#grammarpy and http://www.inf.puc-rio.br/~roberto/lpeg/ for some influences.

Thanks to Kragen Sitaker for ideas about the syntax.

Installing

$ python setup.py install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Peglet-0.1.0.tar.gz (28.3 kB view hashes)

Uploaded Source

Built Distribution

Peglet-0.1.0.cygwin-1.7.17-i686.exe (60.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page