Pig: Added ::eos

This commit is contained in:
Paul Beckingham 2015-12-29 16:24:36 -05:00
parent 351993b486
commit 7007dedb45
2 changed files with 8 additions and 0 deletions

View file

@ -98,6 +98,12 @@ bool Pig::getDigits (int& result)
return false;
}
////////////////////////////////////////////////////////////////////////////////
bool Pig::eos () const
{
return _text[_cursor] == '\0';
}
////////////////////////////////////////////////////////////////////////////////
std::string Pig::dump () const
{

View file

@ -39,6 +39,8 @@ public:
bool getDigit (int&);
bool getDigits (int&);
bool eos () const;
std::string dump () const;
private: