Added some parser exceptions.

This commit is contained in:
Jesse Beder 2008-07-02 05:00:32 +00:00
parent 901d16a96f
commit 2ccbfeff47
9 changed files with 201 additions and 30 deletions

View file

@ -29,6 +29,18 @@ namespace YAML
return *this;
}
Node::Iterator Node::Iterator::operator ++ (int)
{
Iterator temp = *this;
if(type == IT_SEQ)
++seqIter;
else if(type == IT_MAP)
++mapIter;
return temp;
}
const Node& Node::Iterator::operator * ()
{
if(type == IT_SEQ)