data 1,2,3 に対して read a を繰り返し実行すると read a 'aは1になる read a 'aは2になる read a 'aは3になる read a 'もうデータがないのでエラーになる ということになります。