A simple parser for sum expressions.