calc

a simple command line calculator

Parse the input of the user and compute the result

Installation

git clone https://github.com/MohamedLEGH/crystal-calc
cd calc
crystal build calc.cr

Usage

./calc

calc> 14 + 2 * 3 - 6 / 2
17
calc> 7 + 3 * (10 / (12 / (3 + 1) - 1))
22
calc> 7 + 3 * (10 / (12 / (3 + 1) - 1)) / (2 + 3) - 5 - 3 + (8)
10
calc> 7 + (((3 + 2)))

Development

TODO Write development instructions here

Contributors

inspired by https://ruslanspivak.com/lsbasi-part1/