mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Grammar: Added ::validate for consistency checking
This commit is contained in:
parent
6fac8a4a54
commit
04f8b6bd6a
2 changed files with 7 additions and 0 deletions
|
@ -160,3 +160,8 @@ std::string Grammar::dump () const
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
void Grammar::validate () const
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -60,6 +60,8 @@ protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void validate () const;
|
||||||
|
|
||||||
std::string _start;
|
std::string _start;
|
||||||
std::map <std::string, Grammar::Rule> _rules;
|
std::map <std::string, Grammar::Rule> _rules;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue