Simple math expression parser