private void handleError(Token tok, Recovery next, String expected) {
        if (next.contains(tok.kind)) {
            makeError(tok, "missing " + expected);
        } else {
            makeError(tok, "encountered expected " + expected);
        }
        recovery(next);
    }