If you work with strings in your Python scripts and you're writing obscure logic to process them, then you need to look into ...
SmartCalculator is a small desktop calculator written in C++ using Qt and CMake. It supports parsing and evaluating mathematical expressions via a custom parser and generates an AST for expressions.