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

How to install modgrammar

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

Modgrammar is a general-purpose library for building language parsers and interpreters using context-free grammar definitions in Python. Language parsing rules (grammars) are defined as standard Python classes, which can then be 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.

Some features include:

  • Pure-Python cross-platform design.
  • Full Unicode support
  • Grammars are defined 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 have custom methods, 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.

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.