ANN: Expressions 0.1 – customizable arithmetic expression parser

12 views
Skip to first unread message

Stefan Urbanek

unread,
Aug 2, 2013, 10:52:44 PM8/2/13
to datab...@googlegroups.com
Hi,

I am happy to announce Expressions 0.1 – hand-made, fat-free, customizable arithmetic expression parser for Python. Based on the Dijkstra's shunting-yard algorithm. No external dependencies, no need to know what BNF stands for. Writing you own expression compiler was never easier.

Expressions is a lightweight arithmetic expression parser for creating simple arithmetic expression compilers.

Goal is to provide minimal and understandable interface for handling arithmetic expressions of the same grammar but slightly different dialects. The framework will stay lightweight and it is unlikely that it will provide any more complex gramatical constructs.

Parser is hand-written to avoid any dependencies. The only requirement is Python 3.

RELEASE INFORMATION


SOURCES


EXAMPLES
The folder contains:
* compiler with access control to variables
* compiler to SQLAlchemy expression object structures


The framework will be used in Bubbles for it's own expression language and for translation of the expressions to the backends.

If you have any questions or suggestions let me know.

Enjoy,

Stefan Urbanek

Twitter: @Stiivi
Personal: stiivi.com
Data Brewery: databrewery.org

signature.asc
Reply all
Reply to author
Forward
0 new messages