Parser for arithmetic