LR0: Added ::expand

This commit is contained in:
Paul Beckingham 2016-01-02 14:42:06 -05:00
parent 31b53e8c23
commit c0a7a203cf
2 changed files with 9 additions and 0 deletions

View file

@ -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
//

View file

@ -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.