mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
LR0: ::closeState no longer has any return value
This commit is contained in:
parent
1491df085d
commit
1f9826a07e
2 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue