summaryrefslogtreecommitdiff
path: root/src/piraha/Dot.cc
blob: b06cd31983175f1dd5d7acad3fd4ecaa5f412881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "Piraha.hpp"

using namespace cctki_piraha;

bool Dot::match(Matcher *m) {
    if(m->pos - m->input_size >= 0)
        return false;
	char c = m->input[m->pos];
	if(c == '\n') {
		return false;
	} else {
		m->pos++;
		return true;
	}
}