Robinson Crusoe's parsing package.
Project description
peglet
Three goals:
A parsing library that’s pleasant enough to use;
that’s simple to adapt or rewrite from scratch if I’m faced with some new situation like a new programming language;
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Peglet-0.1.0.cygwin-1.7.17-i686.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b212680fbfe91604b53e471cbe29db920c576931e6f25cf7ad67227903efeba |
|
MD5 | 9f874bf29a545d4bcb3734301c2a0f72 |
|
BLAKE2b-256 | 7f46f63a0ae1c45a071a35c649c3e438e0feec0d11cfe5b38f04f13ea13caed2 |