diff --git a/src/Lex/NFAGenerator.cpp b/src/Lex/NFAGenerator.cpp index e2df27a..2d90878 100644 --- a/src/Lex/NFAGenerator.cpp +++ b/src/Lex/NFAGenerator.cpp @@ -24,7 +24,6 @@ NFA *NFAGenerator::buildNFA(const std::vector& regexMap, for (auto& regexDef : regexDefMap) { NFA* nfa = regexToNFA(*regexDef->getValue()); nfa->setTokenName(*regexDef->getKey()); - nfas.push_back(nfa); regexToNFAMap[*regexDef->getKey()] = nfa; }