Expanded the parser to handle arithmetic.