Nailing or stapling machines provided with means for operating on discrete points