From f1916c39b820b7d10d1ae7d7447675c4224d8197 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 24 Aug 2014 17:26:05 +0100 Subject: fixes --- fast/parse.cc | 55 ------------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 fast/parse.cc (limited to 'fast/parse.cc') diff --git a/fast/parse.cc b/fast/parse.cc deleted file mode 100644 index 06c9fa0..0000000 --- a/fast/parse.cc +++ /dev/null @@ -1,55 +0,0 @@ -#include "parse.hh" - - -namespace Parse { - - -} // - - -vector tokenize(string s) -{ - istringstream ss(s); - vector res; - while (ss.good()) { - string t; - ss >> t; - G::T i(t); - cout << i.word << endl; - res.push_back(i); - } - return res; -} - - -bool operator==(vector const& a, vector const& b) -{ - if (a.size() != b.size()) return false; - for (auto it: a) -} - -int main(int argc, char** argv) -{ - string in("karten haie"); - vector tok = tokenize(in); - for (auto it: tok) - cout << it.word << ","; - cout << endl; - size_t n = tok.size(); - - G::Grammar g(argv[1]); - - vector spans; - Parse::visit(spans, 1, 0, 6); - for (auto it: spans) { - cout << "(" << it.first << "," << it.second << ")" << endl; - } - - Parse::Chart active(n); - Parse::Chart passive(n); - - //init(tok, n, active, passive, g); - - cout << *(g.flat.at(0)) << endl; -} - -- cgit v1.2.3