Menu

Tree [c58a23] master /
 History

HTTPS access


File Date Author Commit
 examples 2015-07-14 Ognyan Tonchev Ognyan Tonchev [44c58e] c_grammar: update C grammar
 INSTALL 2014-09-26 Ognyan Tonchev Ognyan Tonchev [02f4ab] Add info how to install
 LICENSE 2014-10-01 Ognyan Tonchev Ognyan Tonchev [68cb94] LICENSE: update
 README 2014-10-15 Ognyan Tonchev Ognyan Tonchev [4877bb] README: update info
 pylangparser.py 2015-07-14 Ognyan Tonchev Ognyan Tonchev [c58a23] pylangparser: Never unpack result in Merge/Comb...
 setup.py 2014-09-26 Ognyan Tonchev Ognyan Tonchev [02f4ab] Add info how to install

Read Me

pylangparser - Simple language parsing from Python. Project provides classes
for parsing formal languages in an easy way. Without using any external
libraries, only unittest, re and pprint. There is a Lexer and a Parser class.
The lexer produces list of tokens that the Parser then uses to build the AST.
The lexer can also be used as a stand alone component. There is support for
building customized AST's. The grammars are defined directly into the Python
code.

In the examples folder you will find both simple example scripts demonstrating
basic usage of the parser and some more useful and complex ones. For example,
there is a script for parsing C source code and building and iterating the AST.
SQL parser will be added soon too.

Note: Documentation is not fully complete yet. Existing APIs can still change.

Feel free to send suggestions, comments and patches to:
    Ognyan Tonchev (otonchev at gmail com)

Project's wiki page:
    https://github.com/otonchev/pylangparser/wiki
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.