mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
LR0: Added Item::next
This commit is contained in:
parent
b207039464
commit
d8096d2fa8
2 changed files with 7 additions and 0 deletions
|
@ -191,6 +191,12 @@ bool LR0::Item::done () const
|
|||
return _cursor >= _rule.size ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string LR0::Item::next () const
|
||||
{
|
||||
return _rule[_cursor];
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string LR0::Item::dump () const
|
||||
{
|
||||
|
|
|
@ -47,6 +47,7 @@ public:
|
|||
void setGrammarRuleIndex (const int);
|
||||
bool advance ();
|
||||
bool done () const;
|
||||
std::string next () const;
|
||||
std::string dump () const;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue