pyparsing is an alternative approach to creating and executing simple grammars, vs. the traditional lex/yacc approach, or the use of regular expressions. The pyparsing module provides a library of classes that client code uses to construct the grammar directly in Python code. Grammars are implemented directly in the client code using parsing objects, instead of externally, as with lex/yacc-type tools. Includes simple examples for parsing SQL, CORBA IDL, and 4-function math.
INSTALLATION:
The source .tar.gz file contains the pyparsing source, documentation, and examples directory as a compressed Gzip'ed tar archive. First uncompress the archive using (replace "x.x.x" with the appropriate version numbers):
gunzip pyparsing-x.x.x.tar.gz
Then extract the files from the tar archive using:
tar -xvf pyparsing-x.x.x.tar
This should create a subdirectory named 'pyparsing-x.x.x', containing further subdirectories containing the source code, documentation, examples, etc. In a console window, cd to this directory, and install pyparsing using:
python setup.py install
This will install pyparsing to the Python site-packages directory.
Product's homepage
Requirements:
· Python