Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.markdown
calc.ml
eval.ml
example.calc
lexer.mll
parser.mly
syntax.ml
tagline.markdown

README.markdown

A simple arithmetic calculator. It handles addition, subtraction, negation, multiplication and division of integers.

The calculator is interactive. It cannot load files. Example interaction:

calc -- programming languages zoo
Type Ctrl-D to exit
calc> 2+2
4
calc> 101 * 111
11211
calc> 24 / (4 - 4)
Error: division by zero