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

using namespace piraha;

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