Pig: Added ::dump details

This commit is contained in:
Paul Beckingham 2015-12-29 15:40:25 -05:00
parent c94fc0b70d
commit d1fbda2c11

View file

@ -73,6 +73,10 @@ void Pig::debug (bool value)
std::string Pig::dump () const
{
std::stringstream out;
out << "" << _text << ""
<< " l" << _text.length ()
<< " m" << _mark
<< " c" << _cursor;
return out.str ();
}