mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
LR0: Renamed ::getExpected to ::getExpectedSymbols
This commit is contained in:
parent
71d216ea49
commit
a0d9df5edd
2 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ void LR0::initialize (const Grammar& grammar)
|
||||||
|
|
||||||
Closure items;
|
Closure items;
|
||||||
items.push_back (item0);
|
items.push_back (item0);
|
||||||
for (auto& expected : getExpected (items))
|
for (auto& expected : getExpectedSymbols (items))
|
||||||
for (auto& item : expand (expected))
|
for (auto& item : expand (expected))
|
||||||
items.push_back (item);
|
items.push_back (item);
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ void LR0::initialize (const Grammar& grammar)
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Collect a unique set of expected symbols from the closure.
|
// 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;
|
std::set <std::string> expected;
|
||||||
for (auto& item : closure)
|
for (auto& item : closure)
|
||||||
|
|
|
@ -68,7 +68,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::set <std::string> getExpected (const Closure&) const;
|
std::set <std::string> getExpectedSymbols (const Closure&) const;
|
||||||
Closure expand (const std::string&) const;
|
Closure expand (const std::string&) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue