mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
LR0: Made Item a public class, for testing
This commit is contained in:
parent
6b4448ec8a
commit
66504d5dfc
2 changed files with 2 additions and 3 deletions
|
@ -158,7 +158,7 @@ std::string LR0::dump (std::vector <std::vector <std::string>>& augmented, State
|
|||
*/
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
LR0::Item::Item (std::vector <std::string>& rule)
|
||||
LR0::Item::Item (const std::vector <std::string>& rule)
|
||||
: _rule (rule)
|
||||
, _cursor (2)
|
||||
{
|
||||
|
|
|
@ -40,11 +40,10 @@ public:
|
|||
void debug (bool);
|
||||
std::string dump () const;
|
||||
|
||||
protected:
|
||||
class Item
|
||||
{
|
||||
public:
|
||||
Item (std::vector <std::string>&);
|
||||
Item (const std::vector <std::string>&);
|
||||
bool advance ();
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue