crystal-calc

a command-line calculator in crystal lang

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/

Owner
github statistic
  • 0
  • 0
  • 0
  • 0
  • over 2 years ago
  • December 27, 2018
License

MIT License

Links
Synced at

Fri, 18 Jun 2021 18:19:21 GMT