1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "alone/read.hh" #include "util/file_piece.hh" #include <iostream> int main() { util::FilePiece f(0, "stdin", &std::cerr); while (true) { try { alone::JustVocab(f, std::cout); } catch (const util::EndOfFileException &e) { break; } std::cout << '\n'; } }