pyparsing

An alternative approach to creating and executing simple grammars
Download

pyparsing Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Paul McGuire
  • Publisher web site:
  • http://pyparsing.wikispaces.com/

pyparsing Tags


pyparsing Description

An alternative approach to creating and executing simple grammars 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.gzThen extract the files from the tar archive using:tar -xvf pyparsing-x.x.x.tarThis 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 installThis will install pyparsing to the Python site-packages directory. Requirements: · Python


pyparsing Related Software