blob: 5b930c693ef59c23d291e291875361c2c55c7280 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <iostream>
#include "filelib.h"
#include "decoder.h"
#include "ff_register.h"
using namespace std;
int main(int argc, char** argv) {
register_feature_functions();
Decoder decoder(argc, argv);
const string input = decoder.GetConf()["input"].as<string>();
cerr << "Reading input from " << ((input == "-") ? "STDIN" : input.c_str()) << endl;
ReadFile in_read(input);
istream *in = in_read.stream();
assert(*in);
string buf;
while(*in) {
getline(*in, buf);
if (buf.empty()) continue;
decoder.Decode(buf);
}
return 0;
}
|