Merged parser for arithmetic operations.