Make the tokenizer use a similar error reporting than the parser.