LR0: ::closeState no longer has any return value

This commit is contained in:
Paul Beckingham 2016-01-05 01:13:47 -05:00
parent 1491df085d
commit 1f9826a07e
2 changed files with 2 additions and 4 deletions

View file

@ -129,7 +129,7 @@ LR0::Closure LR0::getClosure (const std::string& symbol) const
}
////////////////////////////////////////////////////////////////////////////////
bool LR0::closeState (States& states, const int state) const
void LR0::closeState (States& states, const int state) const
{
std::cout << "# LR0::closeState " << state << "\n";
@ -161,8 +161,6 @@ bool LR0::closeState (States& states, const int state) const
states.push_back (closure);
closeState (states, states.size () - 1);
}
return false;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -70,7 +70,7 @@ public:
private:
std::set <std::string> getExpectedSymbols (const Closure&) const;
Closure getClosure (const std::string&) const;
bool closeState (States&, const int) const;
void closeState (States&, const int) const;
private:
// Copy of the augmented grammar.