Small bugfix

This commit is contained in:
Robin Jadoul 2016-05-29 19:43:16 +02:00
parent ef7cb5a562
commit 3b69ec581d
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ namespace lxs {
enfa.numStates++;
enfa.starting = 0;
enfa.priority[(State) *enfa.accepting.begin()] = (Priority) i;
enfa.acceptingToken[(State) *enfa.accepting.begin()] = input[i].first;
enfa.acceptingToken[(State) *enfa.accepting.begin()] = input[i].second.first;
result.push_back(enfa);
} catch(SyntaxError &err) {
throw InputParserException("Error when parsing regex on line " + std::to_string(input[i].first) + ":\n\t" + err.what());