mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Grammar: Added ::start
This commit is contained in:
parent
791e870eda
commit
459bf183dc
2 changed files with 7 additions and 0 deletions
|
@ -137,6 +137,12 @@ void Grammar::loadFromString (const std::string& input)
|
|||
validate ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string Grammar::start () const
|
||||
{
|
||||
return _start;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string Grammar::dump () const
|
||||
{
|
||||
|
|
|
@ -38,6 +38,7 @@ public:
|
|||
Grammar ();
|
||||
void loadFromFile (File&);
|
||||
void loadFromString (const std::string&);
|
||||
std::string start () const;
|
||||
std::string dump () const;
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue