LR0: Renamed ::getExpected to ::getExpectedSymbols

This commit is contained in:
Paul Beckingham 2016-01-03 16:38:46 -05:00
parent 71d216ea49
commit a0d9df5edd
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -68,7 +68,7 @@ public:
};
private:
std::set <std::string> getExpected (const Closure&) const;
std::set <std::string> getExpectedSymbols (const Closure&) const;
Closure expand (const std::string&) const;
private: