A simple parser for arithmetic expressions.