Simple calculator built for educational purposes.
node main.js 1 + 1
npm test
Expression <- Sum
Sum <- Product (+ | -) Product*
Product <- Value (* | /) Value*
Value <- (-)? ([0-9]+) (.[0-9]+)?
| (++ | --) Value
| Value (++ | --)
| '(' Expression ')'