Continued working on scanner.

We're now using exceptions for errors, and scanning/pushing tokens is exception-safe (using a set of "limbo tokens").
This commit is contained in:
Jesse Beder 2008-06-26 19:30:11 +00:00
parent 8ae7b48188
commit a3961d047f
6 changed files with 461 additions and 16 deletions

14
exceptions.h Normal file
View file

@ -0,0 +1,14 @@
#pragma once
#include <exception>
namespace YAML
{
class Exception: public std::exception {};
class UnknownToken: public Exception {};
class IllegalBlockEntry: public Exception {};
class IllegalMapKey: public Exception {};
class IllegalMapValue: public Exception {};
class IllegalScalar: public Exception {};
}