private void handleError(Token last, int next, String expected) {
        if (last.next.kind == next) {
            makeError(last.next, "missing " + expected);
        } else {
            makeError(last.next, "encountered expected " + expected);
            getNextToken();
        }
    }