Made a simple parser/evaluator of arithmetic expressions in Python
Made a simple parser/evaluator of arithmetic expressions in Python
I was noodling around with Python on a boring evening, when I decided to try my hand at writing a hand rolled arithmetic expression parser/evaluator without using any parsing tools/generators. I made this repo purely for educational/fun purpose since it only supports 4 basic arithmetic operators and nested sub-expressions (to make it slightly more challenging :P). Then I had the idea to extend the unit tests with Hypothesis (Python's property based unit testing library) and it found an edge case in my simple implementation that I thought had it covered via unit tests! Sharing this repo just in case anyone finds it interesting (esp. the hypothesis test file.)
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
A Pratt Parser in Python
Python bindings to the Servo HTML5 parser, html5ever
PyCParser, C parser and interpreter in Python
CNC G and M Code Parser in Python
Lark, an easy Earley parser for Python
Easy parser combinators for python 3
Custom String Parser ( Python)
JParserCombinator – Simple parser combinator for Java
libpypa – A Python Parser Library in C++
libpypa – A Python Parser Library in C++