An interpreter for arithmetic expressions that aims to provide a simple example of recursive descent parsing.
Press CTRL + D to quit
> 2 + 3 * 4
14.0
> (2 - 3) * 4
-4.0
> -2 ^ 2
-4.0
> 2 ^ 2 ^ 3
256.0
> (10 * (350 + -25)) / 2.25
1444.4444444444443
> 100 + -2 ^ -(2.5 + 0.5) * 25
96.875
- Linux
- Python 3.10+
git clone https://github.com/0xHaru/Calc.git
cd Calc
make run