diff --git a/src/LR0.cpp b/src/LR0.cpp index e221d2b7..c3286d4e 100644 --- a/src/LR0.cpp +++ b/src/LR0.cpp @@ -74,7 +74,7 @@ void LR0::initialize (const Grammar& grammar) Closure items; items.push_back (item0); - for (auto& expected : getExpected (items)) + for (auto& expected : getExpectedSymbols (items)) for (auto& item : expand (expected)) items.push_back (item); @@ -87,7 +87,7 @@ void LR0::initialize (const Grammar& grammar) //////////////////////////////////////////////////////////////////////////////// // Collect a unique set of expected symbols from the closure. -std::set LR0::getExpected (const Closure& closure) const +std::set LR0::getExpectedSymbols (const Closure& closure) const { std::set expected; for (auto& item : closure) diff --git a/src/LR0.h b/src/LR0.h index 15b63063..c4b7eb4f 100644 --- a/src/LR0.h +++ b/src/LR0.h @@ -68,7 +68,7 @@ public: }; private: - std::set getExpected (const Closure&) const; + std::set getExpectedSymbols (const Closure&) const; Closure expand (const std::string&) const; private: