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/

Repository

crystal-calc

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • almost 6 years ago
  • December 27, 2018
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 06:56:25 GMT

Languages