Better parser error messages

What do you think of factoring the duplicated HINT messages away from where they're used?