mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
LR0: Added ::expand
This commit is contained in:
parent
31b53e8c23
commit
c0a7a203cf
2 changed files with 9 additions and 0 deletions
|
@ -126,6 +126,14 @@ std::set <std::string> LR0::getExpected (const Closure& closure)
|
|||
return expected;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
LR0::Closure LR0::expand (const Closure& closure) const
|
||||
{
|
||||
LR0::Closure result;
|
||||
|
||||
return closure;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Aho/Sethi/Ullman, p224
|
||||
//
|
||||
|
|
|
@ -70,6 +70,7 @@ public:
|
|||
private:
|
||||
Closure getClosure (const Closure&);
|
||||
std::set <std::string> getExpected (const Closure&);
|
||||
Closure expand (const Closure&) const;
|
||||
|
||||
private:
|
||||
// Copy of the augmented grammar.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue