summaryrefslogtreecommitdiff
path: root/src/piraha/Matcher.cc
diff options
context:
space:
mode:
authorsbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac>2014-02-18 17:56:10 +0000
committersbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac>2014-02-18 17:56:10 +0000
commit375a3181eca67ade911daab563ff02cef15ddda4 (patch)
tree516108ec7b9072b790a9bbb66d25ec711827d321 /src/piraha/Matcher.cc
parent7bab271c2b988a8feb0e2aed226fbe563bdc674f (diff)
Make it possible to parse very large paramter files and to do it quickly.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@5086 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/piraha/Matcher.cc')
-rw-r--r--src/piraha/Matcher.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/piraha/Matcher.cc b/src/piraha/Matcher.cc
index fd1b2355..71fb0550 100644
--- a/src/piraha/Matcher.cc
+++ b/src/piraha/Matcher.cc
@@ -27,11 +27,12 @@ bool Matcher::matchesTo(int match_to_) {
std::cout << g->patterns << std::endl;
}
assert(p.valid());
+ //packrat.clear();
pos = 0;
max_pos = -1;
match_to = match_to_;
err_pos = -1;
- children.clear();
+ children->clear();
bool b = p->match(this);
end_ = pos;
return b;