A bit more work.

This commit is contained in:
Nathan Braswell
2013-08-23 01:51:58 -04:00
parent 35a0677d07
commit 84274ed138

View File

@@ -335,7 +335,8 @@ void RNGLRParser::addStates(std::vector< State* >* stateSets, State* state, std:
if (newStates[i]->basisEqualsExceptLookahead(*((*stateSets)[j]))) {
stateAlreadyInAllStates = true;
//If it does exist, we should add it as the shift/goto in the action table
if (*((*stateSets)[j]) != *(newStates[i]))
if (!((*stateSets)[j]->basisEquals(*(newStates[i]))))
toDo->push((*stateSets)[j]);
(*stateSets)[j]->combineStates(*(newStates[i]));