====== eol ====== xpeg::eol : Element(Element::TYPE_EOL); ===== Description ===== End of Line の略です。 "\n","\n","\r\n"が当てはまり、改行コードがどれかは自動的に認識してくれます。 ===== Example ===== テキストファイルを1行ずつイテレートするサンプルです。最終行に改行が無い場合、最終行は出力されません。 ==== C++ ==== ==== Xtal ==== if (fs : FileStream("text.txt", "r")){ fs.scan(xpeg::eol){ it.prefix.p; } } else { "cannot open file".p; } ==== Output ==== text file no 中身 desu