diff --git a/src/LR0.cpp b/src/LR0.cpp index bb095da3..a0ecac2c 100644 --- a/src/LR0.cpp +++ b/src/LR0.cpp @@ -103,7 +103,7 @@ LR0::Closure LR0::getClosure (const Closure& items) closure.push_back (item); // Obtain all the expected symbols. - auto expected = getExpectations (items); + auto expected = getExpected (items); for (auto& exp : expected) { std::cout << "# Expecting " << exp << "\n"; @@ -116,7 +116,7 @@ LR0::Closure LR0::getClosure (const Closure& items) //////////////////////////////////////////////////////////////////////////////// // Collect a unique set of expected symbols from the closure. -std::vector LR0::getExpectations (const Closure& closure) +std::vector LR0::getExpected (const Closure& closure) { std::vector expected; for (auto& item : closure) diff --git a/src/LR0.h b/src/LR0.h index 641602ef..ae7635ff 100644 --- a/src/LR0.h +++ b/src/LR0.h @@ -68,7 +68,7 @@ public: private: Closure getClosure (const Closure&); - std::vector getExpectations (const Closure&); + std::vector getExpected (const Closure&); private: // Copy of the augmented grammar.