mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
LR0: Documented ::initializeFirstState
This commit is contained in:
parent
c33e12f099
commit
a9b7ca04c9
1 changed files with 3 additions and 0 deletions
|
@ -120,6 +120,9 @@ LR0::Closure LR0::getClosure (const std::string& symbol) const
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// The first state is юust the augmented grammar with the expected symbols all
|
||||
// at the first symbol of each rule, i.e. exactly what happens when an Item is
|
||||
// instantiated from a grammar rule.
|
||||
void LR0::initializeFirstState (States& states) const
|
||||
{
|
||||
LR0::Closure result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue