Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    modgrammar 0.8

    Download button

    No screenshots available
    Downloads: 180  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Alex Stewart | More programs
    BSD License / FREE
    December 26th, 2011, 16:12 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    modgrammar description

    Modular grammar-parsing engine

    Modgrammar is a general-purpose Python 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.


    Product's homepage

    Here are some key features of "modgrammar":

    · Pure-Python cross-platform design.
    · Grammar definitions are done using standard Python syntax.
    · Supports arbitrarily complex grammars, including recursion.
    · Defining a grammar automatically creates a working parser for that grammar in the process.
    · 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.
    · Modular grammar design supports distributing grammars as python library modules, combining grammars from multiple sources into larger grammars, and even parameterized grammar definitions.

    Requirements:

    · Python

      


    TAGS:

    language parser | language interpreter | Python library | language | parser | interpreter

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM