A new approach to infinitary languages