This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Modular grammar-parsing engine

Project Description

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.
Release History

Release History

This version
History Node

0.10

History Node

0.9.1

History Node

0.9

History Node

0.8

History Node

0.7

History Node

0.6

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
modgrammar-0.10.tar.gz (86.4 kB) Copy SHA256 Checksum SHA256 Source Feb 15, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting