arithmetic parser