LR0: Renamed ::getExpectations to ::getExpected

This commit is contained in:
Paul Beckingham 2016-01-02 14:28:20 -05:00
parent f658c5d35c
commit 1305c0cb55
2 changed files with 3 additions and 3 deletions

View file

@ -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 <std::string> LR0::getExpectations (const Closure& closure)
std::vector <std::string> LR0::getExpected (const Closure& closure)
{
std::vector <std::string> expected;
for (auto& item : closure)

View file

@ -68,7 +68,7 @@ public:
private:
Closure getClosure (const Closure&);
std::vector <std::string> getExpectations (const Closure&);
std::vector <std::string> getExpected (const Closure&);
private:
// Copy of the augmented grammar.