private void handleParseProblem(ParsePattern... patterns)
{
String msg = "Expected " + getPatternText(patterns) + ".";
int pos = getStartPosAbsolute() + position;
addProblem(new SyntaxProblem(msg, pos, getLength() - position));
position = getLength();
}