A program that implements simple parsing (in all senses of the word) and calculates simple arithmetic operations
Operator | Operation |
---|---|
+ | Add |
- | Subtract |
* | Multiple |
/ | Divide |
^ | Power |
Program also support parentheses that can be used to change order of operations
> 2 + 2
4
> 2 ^ 3
8
> 45 - 32
13
> 4 * 3 / 2
6
... and more
Simply run
cargo run