Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install modgrammar-py2

How to install modgrammar-py2

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install modgrammar-py2
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.8.1
0.9.1Never BuiltWhy not?
0.8.1 Available View build log
Linux (64-bit)
0.9.1 Available View build log
0.8.1 Available View build log
0.9.1 Available View build log
 
License
BSD
Depended by
Imports
Lastest release
version 0.9.1 on Sep 20th, 2013

Modgrammar is a general-purpose library for constructing language parsers and interpreters using context-free grammar definitions in Python. Language parsing rules (grammars) can be defined using standard Python syntax, and then used to parse and validate input strings or files into meaningful data structures. Possible applications range from simple input validation, to complex expression evaluation, to full-fledged programming language parsing for compilers or interpreters.

Documentation: http://don-ramon.github.com/modgrammar-py2

Some features include:

  • Pure-Python cross-platform design.
  • Grammar definitions are created using standard Python syntax.
  • Supports arbitrarily complex grammars, including recursion.
  • Defining a grammar automatically creates a working parser in the process (no compilation steps or lengthy startup times).
  • Parse results contain full parse-tree information, including heirarchical tokenization of the input.
  • Parse result objects can be given custom methods and behaviors as part of the grammar definition, producing rich data objects.
  • Modular grammar design supports distributing grammars as python library modules, combining grammars from multiple sources into larger grammars, and even parameterized grammar definitions.
  • Python 2.6+, 3.x support

Subscribe to package updates

Last updated Sep 20th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.