Skip to content
Snippets Groups Projects
Commit 83675a9b authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

algo: brzozowski: wrong regexp to call

parent f6ea746b
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,7 @@ automaton::NFA Brzozowski::convert(const regexp::RegExp& regexp) ...@@ -117,7 +117,7 @@ automaton::NFA Brzozowski::convert(const regexp::RegExp& regexp)
   
for(const auto& r : Q) for(const auto& r : Q)
{ {
regexp.getData().Accept((void*) &out, *this); r.getData().Accept((void*) &out, *this);
if(out.second) // if(r.containsEmptyString()) if(out.second) // if(r.containsEmptyString())
automaton.addFinalState(stateMap.find(r)->second); automaton.addFinalState(stateMap.find(r)->second);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment