summaryrefslogtreecommitdiff
path: root/src/piraha/NegLookAhead.cc
blob: 43385ee94f668158c6eea91416ef923d1ced487e (plain)
1
2
3
4
5
6
7
8
9
10
#include "Piraha.hpp"

using namespace cctki_piraha;

bool NegLookAhead::match(Matcher *m) {
    int pos = m->pos;
    bool b = pattern->match(m);
    m->pos = pos;
    return !b;
}