parser of math expressions