Parser/Composer library for Python https://fdik.org/pypeg2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Jason Morgan 4dd9d69781 Merge pull request 'master' (#3) from Jason/pypeg2:master into master 1 year ago
docs switching to git 2 years ago
pypeg2 Include fix for XML output formatting being minified in the last two tests 1 year ago
samples Include fix for XML output formatting being minified in the last two tests 1 year ago
.gitignore ignore results of make docs 2 years ago
CHANGES.txt switching to git 2 years ago
LICENSE.txt switching to git 2 years ago
MANIFEST.in switching to git 2 years ago
Makefile choose default python3 2 years ago
README.md nicer 2 years ago
TODO.txt switching to git 2 years ago
setup.py Remove disutils and replace with setuptools so that "python setup.py develop" works 1 year ago

README.md

pyPEG 2 for Python 2.7 and 3.x

Python is a nice scripting language. It even gives you access to its own parser and compiler. It also gives you access to different other parsers for special purposes like XML and string templates.

But sometimes you may want to have your own parser. This is what's pyPEG for. And pyPEG supports Unicode.

The source code for all you can find here:

https://gitea.pep.foundation/fdik/pypeg2

To build the documentation, you'll need YML 2. You can download YML here:

Homepage: http://fdik.org/yml/ Toolchain: http://fdik.org/yml2.tar.bz2

You can install pyPEG 2 with:

$ pip install pypeg2

pyPEG 2 depends on lxml, see http://lxml.de/