How to Write a Formula String Parser in Python
Interpreting a formula in string format to execute it
Published in
9 min readFeb 9, 2020
So, what do I mean by “Formula String” here? Rather than we have a + (b + c)
as code, we can read “a + (b + c)” as a string and then interpret it in Python, including:
- Understanding basic operators
+
,-
,*
,/
- Understanding the calculating…