fucking hell
This commit is contained in:
parent
59a7df7ad1
commit
271588221f
2 changed files with 52 additions and 83 deletions
|
|
@ -314,15 +314,15 @@ public class NFAImpl implements NFA {
|
|||
// state -> accepting
|
||||
// accepting -> state
|
||||
|
||||
Set<String> newAcceptingstate = new HashSet<>();
|
||||
Set<String> newAcceptingState = new HashSet<>();
|
||||
|
||||
for (String state : fakeNFA.getStates()) {
|
||||
if (!fakeNFA.getAcceptingStates().contains(state)) {
|
||||
newAcceptingstate.add(state);
|
||||
newAcceptingState.add(state);
|
||||
}
|
||||
}
|
||||
fakeNFA.acceptingStates.clear();
|
||||
fakeNFA.addAllAcceptingStates(newAcceptingstate);
|
||||
fakeNFA.addAllAcceptingStates(newAcceptingState);
|
||||
|
||||
Set<Character> originalAlphabet = new HashSet<>(fakeNFA.alphabet);
|
||||
|
||||
|
|
|
|||
Reference in a new issue