diff --git a/src/LR0.cpp b/src/LR0.cpp index 9b162430..f7b365b8 100644 --- a/src/LR0.cpp +++ b/src/LR0.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/LR0.h b/src/LR0.h index 8e10f60e..a4ad5262 100644 --- a/src/LR0.h +++ b/src/LR0.h @@ -70,7 +70,7 @@ public: private: std::set 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.