Grammar: Added ::validate for consistency checking

This commit is contained in:
Paul Beckingham 2015-12-22 08:08:39 -05:00
parent 6fac8a4a54
commit 04f8b6bd6a
2 changed files with 7 additions and 0 deletions

View file

@ -160,3 +160,8 @@ std::string Grammar::dump () const
}
////////////////////////////////////////////////////////////////////////////////
void Grammar::validate () const
{
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -60,6 +60,8 @@ protected:
};
private:
void validate () const;
std::string _start;
std::map <std::string, Grammar::Rule> _rules;
};