modify grammar, function term_prime to parse expression with mod