public boolean match(TokenType... args) {
        if (empty()) {
            return false;
        }
        try {
            for (int i = 0; i < args.length; i++) {
                if (tokenList.get(i).type != args[i]) {
                    return false;
                }
            }
        } catch (IndexOutOfBoundsException e) {
            return false;
        }
        return true;
    }