mathx: add parser for sum and product