Welcome to the Text based calculator.
- First, we look to replace assignment shortcuts in the string such as +=, -=, *=, /=
- Second, we look for brackets and try and solve them using recursion
- Third, we interpret and replace the value of unary operations such as ++ and --
- Fourth, we resolve concatenated signs such as 5---4 which is similar to 5-4
- Fifth and last, we compute the expression based on basic arithmetic computation +-/*
$ python Tests.py- a=5+5+5*2/10-3
- a=1
- b=++a
- c=a++
- d=b+++1
- e=++d+1
Multiple signs:
- a=-3+-+-+-2
- b=10----9
Multipliction of negativs
- c=-4-6*-6*-4-2