A simple calculator written in OCaml.
Calc supports operations on both positive and negative integers. It recognizes parentheses as well.
Currently Calc supports the following operations:
-
Addition (+)
-
Subtraction (-)
-
Multiplication (*)
-
Division (*)
-
Modulus (%)
-
Exponentiation (^)
The command exit
is used to exit the program.