mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
LR0: Renamed ::getExpectations to ::getExpected
This commit is contained in:
parent
f658c5d35c
commit
1305c0cb55
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue