Parses Mathematica exressions